[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)
Jesús Cea Avión
report at bugs.python.org
Thu Jun 16 15:44:23 CEST 2011
Jesús Cea Avión <jcea at jcea.es> added the comment:
I have write a testcase, but adding a small delay between reads, allowing more data coming from the server, solves the issue, so this seems to be a race condition. Trying with a remote slow SSL server, I get the same error in python 2.6, so I guess I was being lucky for the last 8 years :-/.
Pitrou, just confirm me that I must catch & retry the exception in all my READ/WRITE, not only in the handshake.
Thanks, and sorry for wasting your time. I know about this SSL details, but my code worked just fine until 2.7.2...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12343>
_______________________________________
More information about the Python-bugs-list
mailing list