[Patches] [ python-Patches-1350658 ] Redundant connect() call in logging.handlers.SysLogHandler

SourceForge.net noreply at sourceforge.net
Mon Nov 7 21:14:49 CET 2005


Patches item #1350658, was opened at 2005-11-07 15:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1350658&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ken Lalonde (kenlalonde)
Assigned to: Nobody/Anonymous (nobody)
Summary: Redundant connect() call in logging.handlers.SysLogHandler

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1350658&group_id=5470


More information about the Patches mailing list