[issue35590] logging.handlers.SysLogHandler with STREAM connects in constructor without timeout

2018-12-27 Thread jso2460
jso2460 added the comment: Yes, when timeout occurs it's then caught by the OSError -- you are completely right about that. Instead my suggestion was meant to provide an option to specify a timeout when creating an instance of SysLogHandler. Currently the socket is created with de

[issue35590] logging.handlers.SysLogHandler with STREAM connects in constructor without timeout

2018-12-26 Thread jso2460
New submission from jso2460 : 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