Skip to content

Commit

Permalink
greenio: Fixed OSError: [WinError 10038] Socket operation on nonsocket
Browse files Browse the repository at this point in the history
  • Loading branch information
lyf78062919 authored and temoto committed Mar 7, 2017
1 parent 885482b commit 5946675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventlet/greenio/base.py
Expand Up @@ -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

0 comments on commit 5946675

Please sign in to comment.