Pylons / waitress

Waitress - A WSGI server for Python 3
https://docs.pylonsproject.org/projects/waitress/en/latest/
Other
1.44k stars 164 forks source link

ensure we don't loop trying to write to a channel thats not connected (fix 100% CPU) #419

Closed djay closed 3 months ago

djay commented 1 year ago

fixes #418

This fixes a race condition where a quick forced socket close will make getpeername to fail and connected == False. If the request then has an error close_after_flush is set and this will result in a 100% CPU loop. This wiil ensure the channel is still closed in this case.

TODO:

digitalresistor commented 3 months ago

Closing this since #435 was merged. Thank you!