summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.10.32.10.3Andy McCurdy2014-08-142-1/+4
|
* handle buffer edgecaseJosh Owen2014-08-131-1/+1
|
* 2.10.22.10.2Andy McCurdy2014-08-112-2/+2
|
* changelogAndy McCurdy2014-08-111-0/+1
|
* fix for pipelines when sending large valuesAndy McCurdy2014-07-281-3/+3
|
* bytearray didn't work with socket.recv_into in python 2.6Andy McCurdy2014-07-211-7/+6
|
* changelogAndy McCurdy2014-07-211-0/+2
|
* cleanup and optimizations to new bytearray codeAndy McCurdy2014-07-211-23/+25
|
* Merge branch 'master' into pr/505Andy McCurdy2014-07-214-18/+95
|\ | | | | | | | | Conflicts: redis/connection.py
| * typoAndy McCurdy2014-07-061-2/+2
| |
| * changelogAndy McCurdy2014-07-061-0/+1
| |
| * Merge pull request #501 from jettify/masterAndy McCurdy2014-07-062-4/+46
| |\ | | | | | | Added bitpos command
| | * fix testsNickolai Novik2014-06-211-4/+4
| | |
| | * bitpos command implementationNickolai Novik2014-06-212-4/+46
| | |
| * | check for the server closing a connection that's compatible with Python 3Andy McCurdy2014-07-062-2/+4
| | | | | | | | | | | | fixes #508
| * | Consistent option names for encoding and encoding_errors. Fixes #510Andy McCurdy2014-07-033-4/+32
| | |
| * | better pack_commands algorithm with less string joiningAndy McCurdy2014-07-031-9/+13
| |/
* | Added support for reusing a bytearray buffer when parsing with hiredis-py 0.1.4tzickel2014-06-271-9/+32
|/
* Merge pull request #499 from grantcox/masterAndy McCurdy2014-06-181-2/+2
|\ | | | | Lock.acquire() to respect blocking_timeout argument
| * Lock.acquire() to respect blocking_timeout argumentGrant Cox2014-06-191-2/+2
|/
* fix python3 compatAndy McCurdy2014-06-161-2/+2
|
* pack multiple commands in a pipeline into larger strings.Andy McCurdy2014-06-162-7/+19
| | | | fixes #495
* more info on thread local storageAndy McCurdy2014-06-163-9/+58
|
* restore default Lock token storage, add toggle to make it thread-localwil paredes2014-06-063-4/+24
| | | | | * add thread_local=False parameter to Lock.__init__() and StrictRedis.lock() * use thread_local to decide whether to put token in thread-local storage
* Merge pull request #491 from dystedium/fixlock3Andy McCurdy2014-06-052-11/+13
|\ | | | | move Lock.token attribute into thread-local storage
| * lock tests: change lock.token to lock.local.tokenwil paredes2014-06-051-3/+3
| |
| * move Lock.token attribute into thread-local storagewil paredes2014-06-051-8/+10
|/
* Merge pull request #489 from dystedium/fixlock2Andy McCurdy2014-06-051-9/+7
|\ | | | | Lock.release(): reorder code to avoid token overwrite
| * Lock.release(): reorder code to avoid token overwritewil paredes2014-06-051-9/+7
|/ | | | | | * assignment to self.token was not protected by the lock, so the value could get overwritten * do_release() now has an expected_token parameter that receives the old token value * NOTE: this only fixes the issue for locks that do not have timeouts
* 2.10.12.10.1Andy McCurdy2014-06-021-1/+1
|
* need to detect READONLY errors in read_response, now send_command. real fixAndy McCurdy2014-06-022-2/+6
| | | | for #435
* travis still hasn't updated to 3.4.1 =/Andy McCurdy2014-06-011-1/+0
|
* update travis config to test against python 3.4Andy McCurdy2014-06-011-4/+5
|
* 2.10.02.10.0Andy McCurdy2014-06-012-2/+2
|
* changelogAndy McCurdy2014-06-011-0/+7
|
* add a lock implementation using Lua scripts.Andy McCurdy2014-06-013-37/+197
|
* updated Lock class:Andy McCurdy2014-06-014-42/+255
| | | | | * now uses unique string tokens to claim lock ownership * added extend() method to extend the timeout on an already acquired lock
* move Lock class to it's own moduleAndy McCurdy2014-05-313-93/+6
|
* add .python-version to .gitignoreAndy McCurdy2014-05-311-0/+1
|
* test against Python 3.4 with tox. note 3.4.0 has issues, use 3.4.1 insteadAndy McCurdy2014-05-292-1/+9
|
* using repr() on a long value includes the trailing "L". use str() instead.Andy McCurdy2014-05-281-2/+4
| | | | fixes #484
* changelogAndy McCurdy2014-05-271-0/+5
|
* Don't retry commands that fail due to a socket.timeout by default.Andy McCurdy2014-05-274-20/+42
| | | | | | | | | | | | | | | | | | | | Users now have the ability about how socket.timeout errors are handled. Previously socket.timeout errors were handled just like any other socket error in that the command would be retried once. This createed a potential race condition when the client sends a command to a busy Redis server that can't reply faster than the client's `socket_timeout` option. In this case, the server will still eventually process the command. There's now a `retry_on_timeout` option that's set to False by default. If `retry_on_timeout` is False, any socket.timeout error will raise a TimeoutError exception. If `retry_on_timeout` is set to True, the client will retry executing the command once just like other socket.error exceptions. TODO: Write better tests for this code. TODO: Much of this logic could/should be moved to the ConnectionPool or Connection objects. Fixes #261
* only pass explicitly defined or socket_* options to sentinel connections.Andy McCurdy2014-05-261-14/+43
| | | | fixed #483
* it's ok if max_connections is a long.Andy McCurdy2014-05-261-9/+5
|
* consistent naming, #446Andy McCurdy2014-05-143-19/+22
|
* added socket_connect_timeout and socket_keepalive options. fixed #353Andy McCurdy2014-05-133-15/+63
|
* allow cert_reqs to be a string and convert it to the appropriate SSL constant.Andy McCurdy2014-05-132-0/+36
|
* construct SSL connections from URLs. #446Andy McCurdy2014-05-131-0/+9
|
* added the ablity to pass ssl options to client classes. #446Andy McCurdy2014-05-132-6/+20
|