mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
A couple of socket operations can fail with ENOTCONN error if the other side of the connection is not connected anymore. In that case, let's not crash the whole worker and give a chance to accept new connections. In my case, the operation that sometimes fails is a "getpeername()", which was introduced in b07532be752668be5eb5dbd0a8303abf5c219c99 (v19.8.0). Someone in https://github.com/benoitc/gunicorn/issues/1913 metionned that v19.7.1 was working fine so it matches. Fixes #1913