pallets / werkzeug

The comprehensive WSGI web application library.
https://werkzeug.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
6.63k stars 1.73k forks source link

treat SSLEOFError as dropped connection #2941

Closed davidism closed 3 weeks ago

davidism commented 3 weeks ago

Apparently on Python 3.10 - 3.12, a bug in http.server with TLS caused SSLEOFError to be handled incorrectly in some cases. https://github.com/python/cpython/issues/122254 Add that to the errors caught and handled as dropped connections.

fixes #2926

peterhorsley commented 3 weeks ago

Thanks for making this change, sorry I was planning to make a PR but it got away from me :/