add mkdir + keep mtime + bump max-size

This commit is contained in:
ed
2020-04-14 22:42:43 +00:00
parent a4b0c810a4
commit 10652427bc
13 changed files with 276 additions and 93 deletions

View File

@@ -75,10 +75,12 @@ class HttpSrv(object):
sck.shutdown(socket.SHUT_RDWR)
sck.close()
except (OSError, socket.error) as ex:
if ex.errno not in [107, 57, 9]:
# 107 Transport endpoint not connected
# 57 Socket is not connected
# 9 Bad file descriptor
# self.log(str(addr), "shut_rdwr err: " + repr(sck))
if ex.errno not in [10038, 107, 57, 9]:
# 10038 No longer considered a socket
# 107 Transport endpoint not connected
# 57 Socket is not connected
# 9 Bad file descriptor
raise
finally:
with self.mutex: