mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #17981: Closed socket on error in SysLogHandler.
This commit is contained in:
parent
18b7191653
commit
862b15e7d0
2 changed files with 3 additions and 0 deletions
|
@ -882,6 +882,7 @@ class SysLogHandler(logging.Handler):
|
|||
try:
|
||||
self.socket.send(msg)
|
||||
except socket.error:
|
||||
self.socket.close()
|
||||
self._connect_unixsocket(self.address)
|
||||
self.socket.send(msg)
|
||||
elif self.socktype == socket.SOCK_DGRAM:
|
||||
|
|
|
@ -21,6 +21,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #17981: Closed socket on error in SysLogHandler.
|
||||
|
||||
- Fix typos in the multiprocessing module.
|
||||
|
||||
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue