You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last time, I found an error in cpython ssl module that all OSError changes to SSLEOFError, and I fixed it.
Please refer to the following link for more information. python/cpython#115627
Urlib3 is also affected by this error, and exceptions are required for versions that still have this error.
There will be a few more errors affected, but what I have identified is the next issue. #3148
You will be able to find out more by the following test code.
# conn.request() calls http.client.*.request, not the method in# urllib3.request. It also calls makefile (recv) on the socket.try:
conn.request(
method,
url,
body=body,
headers=headers,
chunked=chunked,
preload_content=preload_content,
decode_content=decode_content,
enforce_content_length=enforce_content_length,
)
# We are swallowing BrokenPipeError (errno.EPIPE) since the server is# legitimately able to close the connection after sending a valid response.# With this behaviour, the received response is still readable.exceptBrokenPipeError:
passexceptOSErrorase:
# MacOS/Linux# EPROTOTYPE and ECONNRESET are needed on macOS# https://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/# Condition changed later to emit ECONNRESET instead of only EPROTOTYPE.ife.errno!=errno.EPROTOTYPEande.errno!=errno.ECONNRESET:
raise
If the server shuts down with a response while sending large request data, an error will occur in that area.
The fix for the cpython bug will not be backported on 3.10, 3.11, and 3.12 is undecided, but it will not be backported. There are likely to be other related errors, so further analysis is needed.
Environment
Describe your environment.
At least, paste here the output of:
@sigmavirus24 i just write a comment on #3100.
Since they are the same EOF error message, they may seem like the same error, but they are different error messages. #3100 does not require any exceptions, but this issue does. I would appreciate it if you could open it again.
Subject
Last time, I found an error in cpython ssl module that all OSError changes to SSLEOFError, and I fixed it.
Please refer to the following link for more information.
python/cpython#115627
Urlib3 is also affected by this error, and exceptions are required for versions that still have this error.
There will be a few more errors affected, but what I have identified is the next issue.
#3148
You will be able to find out more by the following test code.
This is related to the following code in urllib3.
https://github.com/urllib3/urllib3/blob/main/src/urllib3/connectionpool.py#L492-L517
If the server shuts down with a response while sending large request data, an error will occur in that area.
The fix for the cpython bug will not be backported on 3.10, 3.11, and 3.12 is undecided, but it will not be backported. There are likely to be other related errors, so further analysis is needed.
Environment
Describe your environment.
At least, paste here the output of:
Steps to Reproduce
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: