mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Check for connection reset errors on windows
This commit is contained in:
parent
7a9146981e
commit
3aae5a9c28
1 changed files with 9 additions and 0 deletions
|
@ -278,6 +278,15 @@ class SocketServerRequestHandler(socketserver.StreamRequestHandler):
|
|||
logger.handle(record)
|
||||
except (EOFError, KeyboardInterrupt, SystemExit):
|
||||
break
|
||||
except socket.error as exc:
|
||||
try:
|
||||
if exc.errno == errno.WSAECONNREST:
|
||||
# Connection reset on windows
|
||||
break
|
||||
except AttributeError:
|
||||
# We're not on windows
|
||||
pass
|
||||
log.exception(exc)
|
||||
except Exception as exc:
|
||||
log.exception(exc)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue