mirror of https://github.com/python/cpython
Closes #17981: Merged fix from 3.3.
This commit is contained in:
commit
3a8f510b52
|
@ -876,6 +876,7 @@ class SysLogHandler(logging.Handler):
|
||||||
try:
|
try:
|
||||||
self.socket.send(msg)
|
self.socket.send(msg)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
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:
|
||||||
|
|
|
@ -91,6 +91,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #17981: Closed socket on error in SysLogHandler.
|
||||||
|
|
||||||
- Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
|
- Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
|
||||||
is long, not int.
|
is long, not int.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue