Skip to content

Commit

Permalink
# This is a combination of 7 commits.
Browse files Browse the repository at this point in the history
parent 7f3e4f9
author julianz- <[email protected]> 1692386750 -0700
committer julianz- <[email protected]> 1706310924 -0800

# This is a combination of 3 commits.
# This is the 1st commit message:

Updated SSL.py to fix problem caused by SSL_WANT_READ or SSL_WANT_WRITE 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.
# This is the commit message pyca#2:

fixed format for flake8/black

# This is the commit message pyca#3:

E721 errors raised by flake8

# This is the commit message pyca#5:

Update setup.py

Need v42.0.0 or later of Cryptography as this restored the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER constant which is required for possible fix per cherrypy/cheroot#245
# This is the commit message pyca#7:

resolved conflicts
  • Loading branch information
julianz- committed Jan 26, 2024
1 parent 9212f66 commit 4fcf1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def find_meta(meta):
packages=find_packages(where="src"),
package_dir={"": "src"},
install_requires=[
"cryptography>=41.0.5,<43",
"cryptography>=41.0.5,<43",
],
extras_require={
"test": ["flaky", "pretend", "pytest>=3.0.1"],
Expand Down

0 comments on commit 4fcf1a8

Please sign in to comment.