This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jso2460
Recipients jso2460
Date 2018-12-26.11:00:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545822053.48.0.712150888896.issue35590@roundup.psfhosted.org>
In-reply-to
Content
logging.handlers.SysLogHandler in __init__ contains the following code, where socket is created and then connected right away. This seem to provide no way to specify a connection timeout for the socket being created.

sock = socket.socket(af, socktype, proto)
if socktype == socket.SOCK_STREAM:
    sock.connect(sa)

I believe to add an argument to specify the optional timeout would be appreciated, i.e., optionally calling sock.settimeout(..), something like:

sock = socket.socket(af, socktype, proto)
if timeout:
    sock.settimeout(timeout)
if socktype == socket.SOCK_STREAM:
    sock.connect(sa)
History
Date User Action Args
2018-12-26 11:00:55jso2460setrecipients: + jso2460
2018-12-26 11:00:53jso2460setmessageid: <1545822053.48.0.712150888896.issue35590@roundup.psfhosted.org>
2018-12-26 11:00:53jso2460linkissue35590 messages
2018-12-26 11:00:53jso2460create