greenio: Fixed OSError: [WinError 10038] Socket operation on nonsocket

https://github.com/eventlet/eventlet/pull/397
This commit is contained in:
Feng 2017-03-07 17:32:58 +08:00 committed by Sergey Shepelev
parent 885482b576
commit 86607d3820
1 changed files with 1 additions and 1 deletions

View File

@ -490,5 +490,5 @@ def shutdown_safe(sock):
except socket.error as e:
# we don't care if the socket is already closed;
# this will often be the case in an http server context
if get_errno(e) not in (errno.ENOTCONN, errno.EBADF):
if get_errno(e) not in (errno.ENOTCONN, errno.EBADF, errno.ENOTSOCK):
raise