Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | increment version for #1137 debuggingnonblocking | Andy McCurdy | 2019-06-05 | 1 | -1/+1 |
| | |||||
* | test to ensure a ConnectionError is raised when a pubsub connection dies | Andy McCurdy | 2019-06-01 | 1 | -0/+13 |
| | |||||
* | don't rewrite ConnectionErrors as they might be subclasses. | Andy McCurdy | 2019-06-01 | 1 | -1/+1 |
| | | | | just fall back to the except-anything handler | ||||
* | better error handling | Andy McCurdy | 2019-06-01 | 1 | -18/+26 |
| | |||||
* | don't raise socket_error on can_read() calls | Andy McCurdy | 2019-06-01 | 1 | -1/+2 |
| | |||||
* | easier to just pass timeout values around rather than confusing block bools | Andy McCurdy | 2019-06-01 | 1 | -30/+37 |
| | |||||
* | fix variable name | Andy McCurdy | 2019-06-01 | 1 | -1/+1 |
| | |||||
* | rough implementation of using nonblocking sockets instead of selectors | Andy McCurdy | 2019-06-01 | 5 | -369/+92 |
| | |||||
* | changelog | Andy McCurdy | 2019-05-29 | 1 | -0/+3 |
| | |||||
* | Pass encoding_errors setting to hiredis (>=1.0.0) (#1162) | Brian Candler | 2019-05-29 | 2 | -0/+18 |
| | | | | | Pass encoding_errors setting to hiredis (>=1.0.0). Fixes #1161 | ||||
* | changelog | Andy McCurdy | 2019-05-28 | 1 | -0/+3 |
| | |||||
* | case insensitive response callbacks. | Andy McCurdy | 2019-05-28 | 2 | -1/+32 |
| | | | | | | | this change allows users to call client.execute_command('info') or client.execute_command('INFO') and get the same parsed result. Fixes #1168 | ||||
* | changelog | Andy McCurdy | 2019-05-28 | 1 | -0/+2 |
| | |||||
* | remove Token class in favor of bytestringremove_token | Andy McCurdy | 2019-05-28 | 3 | -126/+89 |
| | | | | | | | The Token class was needed when supporting Python 2.6. Now that we've dropped support for 2.6, we don't need it anymore. Fixes #1066 | ||||
* | cleanup MONITOR docs | Andy McCurdy | 2019-05-28 | 2 | -7/+9 |
| | |||||
* | fix py2 compatmonitor | Andy McCurdy | 2019-05-26 | 1 | -2/+3 |
| | |||||
* | add tests for encoding issues and fix bugs found | Andy McCurdy | 2019-05-26 | 2 | -6/+13 |
| | |||||
* | monitor command now has full command text. test suite improved | Andy McCurdy | 2019-05-26 | 2 | -8/+41 |
| | |||||
* | Merge branch 'master' into monitor | Andy McCurdy | 2019-05-26 | 1 | -2/+4 |
|\ | |||||
| * | Merge pull request #1152 from aachurin/master | Andy McCurdy | 2019-04-29 | 1 | -2/+4 |
| |\ | | | | | | | Fix for https://github.com/andymccurdy/redis-py/issues/1135 | ||||
| | * | Update client.py | aachurin | 2019-03-16 | 1 | -2/+4 |
| | | | | | | | | | Fix for https://github.com/andymccurdy/redis-py/issues/1135 | ||||
* | | | Merge branch 'pr/1033' into monitor | Andy McCurdy | 2019-04-25 | 3 | -0/+71 |
|\ \ \ | |/ / |/| | | |||||
| * | | Added support for the monitor command. | Doug Kisabaka | 2019-02-25 | 3 | -0/+71 |
| | | | |||||
* | | | changelog | Andy McCurdy | 2019-04-19 | 1 | -0/+2 |
| | | | |||||
* | | | Fix PubSubWorkerThread race condition | Andy McCurdy | 2019-04-18 | 1 | -13/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolves a race condition found in the PubSubWorkerThread. Prior to this change is was possible to receive the server's resonse to an unsubscribe message prior to the channel/pattern being added to the pending_unsubscribe set. This also improves PubSubWorkerThread.stop so that the run function is stopped immediately after the next iteration. fixes #1150 | ||||
* | | | Merge pull request #1159 from Vic020/fix_connection_reading_socket_error | Andy McCurdy | 2019-04-16 | 1 | -36/+31 |
|\ \ \ | | | | | | | | | Connection Reading Socket Error Enhancement | ||||
| * | | | Merged the error process of "reading socket error" in two Parser class and ↵ | vic020 | 2019-04-11 | 1 | -36/+31 |
|/ / / | | | | | | | | | | | | | | | | | | | | | | added "host":"port" to Exception message for easy debug Change-Id: Ifaa3bef0c8daf3dd2c60b143746b75a26c182a88 | ||||
* | | | Merge pull request #1156 from horizon365/master | Andy McCurdy | 2019-03-25 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | miss positional argument in README example | ||||
| * | | | miss positional argument: 'message' | horizon365 | 2019-03-25 | 1 | -1/+1 |
|/ / / | | | | | | | raise TypeError. | ||||
* | | | make sure the selector is instantiated prior to cleaning it up | Andy McCurdy | 2019-03-18 | 2 | -2/+6 |
| | | | |||||
* | | | Merge pull request #1153 from bmerry/unregister-ready-poller | Andy McCurdy | 2019-03-18 | 2 | -1/+3 |
|\ \ \ | |_|/ |/| | | Unregister socket from ready_poller | ||||
| * | | Close the selector on disconnect | Bruce Merry | 2019-03-18 | 1 | -0/+2 |
| | | | |||||
| * | | Unregister socket from ready_poller | Bruce Merry | 2019-03-18 | 1 | -1/+1 |
|/ / | | | | | | | | | It looks like there was a typo in PollSelector.close that made it unregister from the read_poller twice instead of once from each poller. | ||||
* | | 3.2.13.2.1 | Andy McCurdy | 2019-03-15 | 2 | -1/+3 |
| | | |||||
* | | remove unneccessary checkpid from SentinelConnectionPoolsentinel_pool_fix | Andy McCurdy | 2019-03-14 | 1 | -12/+0 |
|/ | |||||
* | actual 3.2.03.2.0 | Andy McCurdy | 2019-02-17 | 1 | -1/+1 |
| | |||||
* | 3.2.0 | Andy McCurdy | 2019-02-17 | 1 | -1/+14 |
| | |||||
* | test all selectors via pytest parameterizationhealty_connections | Andy McCurdy | 2019-02-11 | 3 | -68/+151 |
| | |||||
* | python2 compat | Andy McCurdy | 2019-02-04 | 1 | -1/+1 |
| | |||||
* | attempt to provide only healthy connections from the pool | Andy McCurdy | 2019-02-04 | 4 | -21/+295 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds redis.selector, a module that provides the best selector strategy available on the current platform. A redis.selector polls a socket to provide two pieces of functionality: 1. Check whether data can be read from the socket. Prior versions of redis-py provided this behavior with just select.select(). select() has lots of limitations, most notably a limit of ~1024 file descriptors. Now that better selectors are available, this should make can_read() faster and able to accomodate more clients. See #1115 and #486 2. Check whether a socket is ready for a command to be sent. This doubles as a health check. It ensures that the socket is available for writing, has no data to read and has no known errors. Anytime a socket is disconnected or hung up, data is available to be read, typically zero bytes. ConnectionPool.get_connection has been modified to ensure that connections it returns are connected and are ready for a command to be sent. If get_connection encounters a case where a socket isn't ready for a command the connection is reconnected and checked again. TODO: more tests for this stuff. implement EPoll and KQueue selectors. Fixes #1115 Fixes #486 | ||||
* | Merge pull request #1129 from Chronial/feature/fix-except | Andy McCurdy | 2019-02-01 | 1 | -4/+4 |
|\ | | | | | Do not leave connections in invalid state | ||||
| * | Do not leave connections in invalid state | Chronial | 2019-01-30 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #1130 from Junnplus/socket-patch | Andy McCurdy | 2019-02-01 | 1 | -1/+1 |
|\ \ | | | | | | | Use IPPROTO_TCP constant instead of SOL_TCP constant | ||||
| * | | use IPPROTO_TCP constant instead of SOL_TCP constant | junnplus | 2019-01-31 | 1 | -1/+1 |
| |/ | |||||
* | | Merge pull request #1131 from Junnplus/fix-typo | Andy McCurdy | 2019-02-01 | 1 | -1/+1 |
|\ \ | | | | | | | Fix github pull template typo | ||||
| * | | fix typo | junnplus | 2019-01-31 | 1 | -1/+1 |
| |/ | |||||
* | | readd the connection destructor | Andy McCurdy | 2019-02-01 | 1 | -0/+6 |
| | | | | | | | | | | | | Since Connection.disconnect() now verifies that the current process owns the connection before shutting the socket down we can safely readd the destructor just to make sure things are really cleaned up | ||||
* | | changelog | Andy McCurdy | 2019-01-31 | 1 | -1/+1 |
| | | |||||
* | | changelog | Andy McCurdy | 2019-01-31 | 1 | -0/+7 |
| | | |||||
* | | Merge branch 'pythonparser' | Andy McCurdy | 2019-01-31 | 2 | -11/+159 |
|\ \ |