diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-02-22 13:11:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 13:11:55 +0200 |
commit | fa76ac49a9ea02c204bd4f1644f39d90140cf356 (patch) | |
tree | 0578d5e4748c64824a1f72ed3b64f23c8f57368b /redis/connection.py | |
parent | f2e34739fccab28a28a066a3ece955eb455b32f9 (diff) | |
download | redis-py-fa76ac49a9ea02c204bd4f1644f39d90140cf356.tar.gz |
Add support for Redis 7 functions (#1998)
* add function support
* linters
* test fcall
* decode reponses for unstable_r
* linters
* fix evalsho_ro test
* fix eval_ro test
* add response callbaks
* linters
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py index 891695d..189cecb 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -463,10 +463,17 @@ class HiredisParser(BaseParser): self._next_response = False return response - response = self._reader.gets() + if disable_decoding: + response = self._reader.gets(False) + else: + response = self._reader.gets() + while response is False: self.read_from_socket() - response = self._reader.gets() + if disable_decoding: + response = self._reader.gets(False) + else: + response = self._reader.gets() # if an older version of hiredis is installed, we need to attempt # to convert ResponseErrors to their appropriate types. if not HIREDIS_SUPPORTS_CALLABLE_ERRORS: |