ssl.SSLWantReadError in version 3.3.0
See original GitHub issueVersion: 3.3.0
Platform: Python3.7 aws Lambda and Python 3.6 Ubuntu 18.04
Description:
Hello
We upgraded today version to the last one - 3.3.0 from 3.2.1. When we did that we started to get ssl error.
reverting version to 3.2.1 fix the issue…
code:
from redis import StrictRedis
cache = StrictRedis(
host=SESSION_CACHE_HOST,
db=int(SESSION_CACHE_DB),
password=SESSION_CACHE_PASS,
ssl=True)
print(cache.keys())
traceback:
Traceback (most recent call last):
...
File "/var/task/redis/client.py", line 1307, in exists
return self.execute_command('EXISTS', *names)
File "/var/task/redis/client.py", line 836, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/var/task/redis/connection.py", line 1049, in get_connection
if connection.can_read():
File "/var/task/redis/connection.py", line 666, in can_read
return self._parser.can_read(timeout)
File "/var/task/redis/connection.py", line 280, in can_read
return self._buffer and self._buffer.can_read(timeout)
File "/var/task/redis/connection.py", line 190, in can_read
raise_on_timeout=False)
File "/var/task/redis/connection.py", line 159, in _read_from_socket
data = recv(self._sock, socket_read_size)
File "/var/task/redis/_compat.py", line 58, in recv
return sock.recv(*args, **kwargs)
File "/var/lang/lib/python3.7/ssl.py", line 1037, in recv
return self.read(buflen)
File "/var/lang/lib/python3.7/ssl.py", line 913, in read
return self._sslobj.read(len)
ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2488)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:14 (9 by maintainers)
Top Results From Across the Web
ssl.SSLWantReadError in version 3.3.0 · Issue #1197 - GitHub
Version: 3.3.0 Platform: Python3.7 aws Lambda and Python 3.6 Ubuntu 18.04 Description: Hello ... ssl.SSLWantReadError in version 3.3.0 #1197.
Read more >ssl — TLS/SSL wrapper for socket objects — Python 3.11.1 ...
Changed in version 3.8: Support for key logging to SSLKEYLOGFILE was added. ... Raise SSLWantReadError or SSLWantWriteError if the socket is non-blocking ...
Read more >18.2. ssl — TLS/SSL wrapper for socket objects — Python v3 ...
New in version 3.3. exception ssl.SSLWantReadError¶. A subclass of SSLError raised by a non-blocking SSL socket when trying to read or write data, ......
Read more >ssl.SSLWantReadError: The operation did not complete (read)
SSLWantReadError : The operation did not complete (read) ... I am trying to use the Python 3.4.2 SSL socket library to create a...
Read more >TLS/SSL wrapper for socket objects - Python
New in version 3.3. exception ssl. SSLWantReadError. A subclass of SSLError raised by a non-blocking SSL socket when trying to read or write...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jzillioux Thanks. I’m looking into this now. I have an assumption and need to setup an SSL connection to test.
FYI I just released redis-py 3.3.4. This version supports all versions of Python 2.7 and also checks to ensure that nonblocking socket reads behave correctly.
3.3.1, 3.3.2 and 3.3.3 could potentially fail to report a real socket error.