Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge branch 'pr/1108' into pythonparser | Andy McCurdy | 2019-01-28 | 1 | -3/+1 | |
|\ \ | |/ |/| | ||||||
| * | Make PythonParser's on_disconnect consistent with | Alexey Popravka | 2019-01-03 | 1 | -3/+1 | |
| | | | | | | | | | | Hiredisparser and Connection — do not close socket on disconnect. Resolves #1085 | |||||
* | | Connection URLs must have a valid scheme. | Andy McCurdy | 2019-01-27 | 1 | -2/+6 | |
| | | | | | | | | | | Fixes #969 Fixes #961 | |||||
* | | Merge pull request #1087 from oridistor/ssl_sni | Andy McCurdy | 2019-01-27 | 1 | -5/+18 | |
|\ \ | | | | | | | Add support for SNI connection to Redis-py | |||||
| * | | pycodestyle fixes to connection.py | Roey Prat | 2018-11-27 | 1 | -4/+5 | |
| | | | ||||||
| * | | Made sure SSL SNI will not affect using redis-py in versions older than 2.7.9 | Ori Markovitch | 2018-11-26 | 1 | -9/+17 | |
| | | | ||||||
| * | | Add SSL SNI support | Danni Moiseyev | 2018-11-26 | 1 | -5/+9 | |
| | | | ||||||
* | | | Merge pull request #1043 from Siecje/repr | Andy McCurdy | 2019-01-27 | 1 | -1/+1 | |
|\ \ \ | |_|/ |/| | | Fix ConnectionPool repr when using default values | |||||
| * | | Fix ConnectionPool repr when using default values | Cody Scot | 2018-10-26 | 1 | -1/+1 | |
| | | | ||||||
* | | | Remove unnecessary compat shim for 'bytes' | Jon Dufresne | 2018-12-28 | 1 | -1/+1 | |
| |/ |/| | | | | | | | | | Both Python 2.7 & Python 3 have the types bytes. On Python 2.7, it is an alias for the type str, same as what was previously defined in _compat.py. | |||||
* | | Add missing UnixDomainSocketConnection._buffer_cutoff | Jyrki Muukkonen | 2018-11-15 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | Without this using `unix_socket_path` will fail: AttributeError: 'UnixDomainSocketConnection' object has no attribute '_buffer_cutoff' Fixes #1067 | |||||
* | | Merge pull request #1017 from u2mejc/issue-1016 | Andy McCurdy | 2018-11-14 | 1 | -2/+2 | |
|\ \ | | | | | | | Enforce ssl_cert_reqs='required' by default | |||||
| * | | Enforce ssl_cert_reqs='required' by default | Justin Clark | 2018-08-07 | 1 | -2/+2 | |
| |/ | ||||||
* | | Merge pull request #1055 from tzickel/pipeperf | Andy McCurdy | 2018-11-14 | 1 | -8/+15 | |
|\ \ | | | | | | | Improve performence of transactions / pipeline requests which involve large chunks of data. | |||||
| * | | Improve performence of transactions / pipeline requests which involve large | tzickel | 2018-11-06 | 1 | -8/+15 | |
| | | | | | | | | | | | | chunks of data. | |||||
* | | | use str() to encode int or long values | Andy McCurdy | 2018-11-14 | 1 | -1/+4 | |
| | | | | | | | | | | | | | | | on python2.7, repr() on a long produces '123L', which is clearly not what we want | |||||
* | | | only accept bytes, strings, ints, longs and floats as user input | Andy McCurdy | 2018-11-14 | 1 | -5/+10 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All input sent to Redis is coerced into bytes. This includes key names and values. Prior to this change, redis-py made an effort to cooerce all input into strings by calling str() (Python 3) or unicode() (Python 2). While this works for a handful of types like ints, longs and floats, it fails for other types like bools ('True' or 'False'), None ('None') and many user defined types. Starting with redis-py version 3.0, sending input of any other type is considered an error an a DataError exception will be raised. Fixes #471 Fixes #472 Fixes #321 Fixes #190 | |||||
* | | | Use unicode literals throughout project | Jon Dufresne | 2018-11-03 | 1 | -31/+17 | |
| | | | | | | | | | | | | Remove workaround for handling unicode with older Pythons. | |||||
* | | | Use io package for BytesIO | Jon Dufresne | 2018-11-03 | 1 | -2/+3 | |
| | | | | | | | | | | | | Available on all supported Python versions. | |||||
* | | | Pass iterator to tuple() without coercing to a list | Jon Dufresne | 2018-11-03 | 1 | -2/+2 | |
| | | | ||||||
* | | | Remove from __future__ import with_statement | Jon Dufresne | 2018-11-03 | 1 | -1/+0 | |
|/ / | | | | | | | All supported Python versions support the with statement. | |||||
* | | Merge pull request #985 from mmaslowskicc/from-url-max-connections | Andy McCurdy | 2018-11-02 | 1 | -1/+2 | |
|\ \ | | | | | | | Fix parsing max_connections URL query string parameter | |||||
| * | | Fix parsing max_connections URL query string parameter | Michał Masłowski | 2018-05-23 | 1 | -1/+2 | |
| |/ | | | | | | | | | Previously ConnectionPool.from_url kept it as a string, causing a 'ValueError: "max_connections" must be a positive integer'. | |||||
* | | Prefer https:// for URLs when available | Jon Dufresne | 2018-11-01 | 1 | -3/+4 | |
| | | ||||||
* | | pycodestyle fixes in client | Roey Prat | 2018-10-28 | 1 | -5/+5 | |
|/ | ||||||
* | Allow socket type to be configured in Connection | AJ Ortega | 2017-11-07 | 1 | -2/+3 | |
| | ||||||
* | add an Encoder object responsible for encoding/decoding bytes and strings | Andy McCurdy | 2017-08-02 | 1 | -39/+49 | |
| | | | | this simplifies multiple places that needs to encode and decode values | |||||
* | added get_encoding() to ConnectionPool | Andy McCurdy | 2017-07-31 | 1 | -0/+10 | |
| | ||||||
* | insert missing word | Peter van Dijk | 2016-11-15 | 1 | -2/+2 | |
| | ||||||
* | Merge pull request #645 from cvrebert/redis-url | Andy McCurdy | 2016-09-06 | 1 | -3/+8 | |
|\ | | | | | Link to redis:// & rediss:// scheme IANA registrations in docs | |||||
| * | Link to redis:// & rediss:// scheme IANA registrations in docs | Chris Rebert | 2015-08-13 | 1 | -3/+8 | |
| | | ||||||
* | | Cache Token objects to improve performance. | Chris Simpson | 2016-06-12 | 1 | -3/+21 | |
| | | | | | | | | | | | | | | | | The Token class now contains a cache of tokens, and each token stores its encoded value. In Python 3 this prevents encoding the Token commands (get, set, incr, etc...) repeatly. There is also a smaller performance improvement by creating fewer objects. A very basic benchmark script was also added. | |||||
* | | Retry `select` calls on `InterruptedError` | Carlton Gibson | 2016-06-10 | 1 | -2/+1 | |
| | | | | | | | | Ref #738 | |||||
* | | For Python < 3.5, automatically retry EINTR | Thomas Steinacher | 2016-05-24 | 1 | -4/+4 | |
| | | ||||||
* | | PEP8 fixes | Tim Savage | 2016-03-29 | 1 | -5/+11 | |
| | | ||||||
* | | Extend ConnectionPool.to_url to parse querystring arguments to correct type. | Tim Savage | 2016-03-29 | 1 | -3/+30 | |
| | | | | | | | | | | Previously if a value for socket_timeout was supplied as part fo the URL an error would be raised when a socket was created with an invalid type, this change fixes that by parsing `socket_timeout`, `socket_connect_timeout` to float values. In addition the boolean values `socket_keepalive` and `retry_on_timeout` are parsed to bool types taking into account the usage of True/False, Yes/No strings. | |||||
* | | raise TimeoutError if a socket.timeout is raised while connecting | Andy McCurdy | 2015-11-09 | 1 | -0/+2 | |
| | | | | | | | | fixes #675 | |||||
* | | socket errors on windows contain more than 2 arguments. | Andy McCurdy | 2015-11-02 | 1 | -3/+4 | |
| | | | | | | | | fixes #641 | |||||
* | | typo | Andy McCurdy | 2015-11-02 | 1 | -2/+2 | |
| | | ||||||
* | | ignore errors raised in SocketBuffer's close method. See #633. | Andy McCurdy | 2015-11-02 | 1 | -2/+10 | |
| | | ||||||
* | | cleanup | Andy McCurdy | 2015-11-02 | 1 | -7/+2 | |
| | | ||||||
* | | decreased length of exception class retrieving line | th13f | 2015-10-26 | 1 | -1/+4 | |
| | | ||||||
* | | parsing 'max number of clients reached' as ConnectionError | th13f | 2015-10-26 | 1 | -2/+9 | |
| | | ||||||
* | | removed the proactive check in HiredisParser for a line ending | Andy McCurdy | 2015-09-28 | 1 | -9/+0 | |
|/ | | | | | it turns out just calling into hiredis to test this is faster than doing string compare in Python. fixes #615 and #650. | |||||
* | fix: Connection.encode complains when value is an object having unicode ↵ | Eric Du | 2015-05-04 | 1 | -1/+1 | |
| | | | | characters in its printable representation | |||||
* | Handle percent-encoded URLs in parsing code | Paul Keene | 2015-02-09 | 1 | -8/+24 | |
| | ||||||
* | Merge branch 'pr/520' | Andy McCurdy | 2014-08-15 | 1 | -2/+3 | |
|\ | ||||||
| * | pep8 | Andy McCurdy | 2014-08-15 | 1 | -1/+2 | |
| | | ||||||
| * | add optional "timeout" parameter to pubsub.can_read | Andy Isaacson | 2014-08-12 | 1 | -2/+2 | |
| | | ||||||
* | | pep8 | Andy McCurdy | 2014-08-14 | 1 | -1/+2 | |
| | |