Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated SSL.py to fix problem caused by SSL_WANT_READ or SSL_WANT_WRI…
…TE errors. When SSL_WANT_READ or SSL_WANT_WRITE are encountered, it's typical to retry the call but this must be repeated with the exact same arguments. Without this change, openSSL requires that the address of the buffer passed is the same. However, buffers in python can change location in some circumstances which cause the retry to fail. By add the setting SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER, the requirement for the same buffer address is forgiven and the retry has a better chance of success. See cherrypy/cheroot#245 for discussion.
- Loading branch information