agentzh/lua-resty-redis — pull request #38 by doujiang24 (2014-03-04 11:16:43+00:00)
Title: sub/unsub commands can be called after read_reply timeout

introduce variable subscribed to mark the state

in subscribed state only SUBSCRIBE, PSUBSCRIBE, UNSUBSCRIBE PUNSUBSCRIBE can be run

and, will auto close then connection when read timedout and not in subscribed state, not need to mark read_timed_out state