Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43b2ab9 + 862b15e commit 3a8f510Copy full SHA for 3a8f510
2 files changed
Lib/logging/handlers.py
@@ -876,6 +876,7 @@ def emit(self, record):
876
try:
877
self.socket.send(msg)
878
except OSError:
879
+ self.socket.close()
880
self._connect_unixsocket(self.address)
881
882
elif self.socktype == socket.SOCK_DGRAM:
Misc/NEWS
@@ -91,6 +91,8 @@ Core and Builtins
91
Library
92
-------
93
94
+- Issue #17981: Closed socket on error in SysLogHandler.
95
+
96
- Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
97
is long, not int.
98
0 commit comments