… attributes rather than the TCP socket attributes. fixes #140
…connect gets called before connect
…cal for anything in redis-py. yaa!
…ow always received the command name for the next command. still need to pass keys.
… the same connection setup logic
…moved from client to connection. introduced concept of protocol parsers and implemented both a PythonParse and a hiredis parser. the parser class can be overridden in the __init__ of the connection if desired.
SELECT commands are issued only on initial socket connection. If a user issues a command during an AOF/RDB load, the socket connection will be successfully opened, but the SELECT command will be lost. If subsequent commands are sent after the AOF/RDB load is completed, the SELECT command will not be retried (due to the open socket), and those commands will go to the wrong DB. This behavior appears to be present in hiredis as well as redis-py. Fixing it here by special casing the AOF/RDB load message and closing the socket connection before raising ResponseError.
…et.SOL_TCP's constant value, 6. Fix for #97