[issue17981] SysLogHandler closes connection before using it
Vinay Sajip
report at bugs.python.org
Thu May 16 20:35:49 CEST 2013
Vinay Sajip added the comment:
> The old socket's destructor closes the fd of the new socket.
Aha! Nice one. But what's the correct fix? I suppose a
self.sock = None
before every self.sock = socket.socket call would fix seem this, and while I can certainly make this change in SysLogHandler, isn't this a more general problem?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17981>
_______________________________________
More information about the Python-bugs-list
mailing list