mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +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:
|
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
|
||||||
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue