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

Setting socket options may fail if remote has already disappeared #399

Closed digitalresistor closed 1 year ago

digitalresistor commented 1 year ago

By the time we come around to accepting a connection on macOS, the remote may have already disappeared, in which case setting options on the socket may fail with an error.

Instead of failing and shutting down the server we want to continue, so move the setting of socket options into the try/except block and log the error instead.

Closes https://github.com/Pylons/waitress/issues/383