summaryrefslogtreecommitdiff
path: root/redis/connection.py
Commit message (Collapse)AuthorAgeFilesLines
...
* make a formal hook so other types of connections don't have to repeat the ↵Andy McCurdy2011-05-121-4/+4
| | | | same connection setup logic
* connection class completely refactored. encoding and command packing moved ↵Andy McCurdy2011-05-121-113/+148
| | | | 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.
* Added socket disconnection if commands are rejected due to AOF/RDB load.Benjamin Anderson2011-04-221-0/+5
| | | | 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.
* Use IPPROTO_TCP instead of SOL_TCPAdam Vandenberg2011-03-271-6/+1
| | | | | The constant value is the same, 6, but the former works in Jython as well as CPython.
* Jython doesn't define socket.SOL_TCP, but seems to work by using ↵Andy McCurdy2011-03-271-1/+7
| | | | socket.SOL_TCP's constant value, 6. Fix for #97
* Fix for #103, handling socket errors betterAndy McCurdy2011-03-141-2/+2
|
* allow the user to choose a connection class via the ConnectionPoolAndy McCurdy2011-02-081-22/+22
|
* Integer replies may be of type longPieter Noordhuis2011-01-301-1/+1
|
* Use hiredis for protocol parsing when availablePieter Noordhuis2011-01-301-1/+36
|
* Move Connection and ConnectionPool to different filePieter Noordhuis2011-01-301-0/+157