ssl.SSLError: [SSL: BAD_WRITE_RETRY] bad write retry (_ssl.c:1636)

dieter dieter at handshake.de
Mon Sep 22 08:46:32 CEST 2014


Nikolaus Rath <Nikolaus at rath.org> writes:

> Can someone explain help me understand what this exception means?
>
> [...]
>   File "/usr/local/lib/python3.4/dist-packages/dugong-3.2-py3.4.egg/dugong/__init__.py", line 584, in _co_send
>     len_ = self._sock.send(buf)
>   File "/usr/lib/python3.4/ssl.py", line 679, in send
>     v = self._sslobj.write(data)
> ssl.SSLError: [SSL: BAD_WRITE_RETRY] bad write retry (_ssl.c:1636)
>
> Presumably this is generated by OpenSSL, but how do I figure out what it
> means? The best I found in the OpenSSL documentation is
> https://www.openssl.org/docs/crypto/err.html, and Google only found
> brought me to https://stackoverflow.com/questions/2997218.

I would first look at the source: "_ssl.c" (source of the Python
module interfacing with OpenSSL) near line 1636.
Likely, this only reports a problem reported by "OpenSSL".
Next step would then be to look at the "OpenSSL" documentation or
source to find out what the error reported by "OpenSSL" means.




More information about the Python-list mailing list