rudimentary jython compat

This commit is contained in:
ed
2019-11-11 04:12:25 +01:00
parent 85454e409a
commit 7b4871b7b8
7 changed files with 69 additions and 16 deletions
+2 -1
View File
@@ -75,8 +75,9 @@ class HttpSrv(object):
sck.shutdown(socket.SHUT_RDWR)
sck.close()
except (OSError, socket.error) as ex:
if ex.errno not in [107, 9]:
if ex.errno not in [107, 57, 9]:
# 107 Transport endpoint not connected
# 57 Socket is not connected
# 9 Bad file descriptor
raise
finally: