Kaydet (Commit) 862b15e7 authored tarafından Vinay Sajip's avatar Vinay Sajip

Issue #17981: Closed socket on error in SysLogHandler.

üst 18b71916
...@@ -882,6 +882,7 @@ class SysLogHandler(logging.Handler): ...@@ -882,6 +882,7 @@ class SysLogHandler(logging.Handler):
try: try:
self.socket.send(msg) self.socket.send(msg)
except socket.error: except socket.error:
self.socket.close()
self._connect_unixsocket(self.address) self._connect_unixsocket(self.address)
self.socket.send(msg) self.socket.send(msg)
elif self.socktype == socket.SOCK_DGRAM: elif self.socktype == socket.SOCK_DGRAM:
......
...@@ -21,6 +21,8 @@ Core and Builtins ...@@ -21,6 +21,8 @@ Core and Builtins
Library Library
------- -------
- Issue #17981: Closed socket on error in SysLogHandler.
- Fix typos in the multiprocessing module. - Fix typos in the multiprocessing module.
- Issue #17754: Make ctypes.util.find_library() independent of the locale. - Issue #17754: Make ctypes.util.find_library() independent of the locale.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment