Visual inspection of _connect_unixsocket() in Lib/logging/handlers.py shows that, in the absence of an exception, a DGRAM socket will always be connected twice. This is likely harmless, but also pointless. The attached patch against today's CVS simply omits the second connect() call.
Logged In: YES user_id=308438 The bug is valid but the patch is not :-( The exception clause tries to open a TCP socket and this needs to be connected. So the correct fix (I think) is to indent the second connect() call. I will check the change into SVN later.
Logged In: YES user_id=203927 Thanks for the quick response. Perhaps my original post was unclear, but the patch I included does precisely as you suggest: it indents the second call.
Logged In: YES user_id=308438 Sorry, I didn't look at the patch - I just looked at your comment. The fix is now checked into the Subversion repository. Thanks for the patch.