Bugs item #1531963, was opened at 2006-07-31 15:58 Message generated for change (Comment added) made by collinwinter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1531963&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: Python Library >Group: Python 2.5 >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: hakker.de (hakker_de) Assigned to: Nobody/Anonymous (nobody) Summary: SocketServer.TCPServer returns different ports Initial Comment: Providing 0 as a port in __init__ of SocketServer.TCPServer leads to different values for port in server_address and socket.getsockname(). Example: import SocketServer s = SocketServer.TCPServer(("0.0.0.0", 0), Handler) s.server_address -> ('0.0.0.0', 0) s.socket.getsockname() -> ('0.0.0.0', 39129) s.server_address should also contain 39129 as the port number for the free port found. ---------------------------------------------------------------------- >Comment By: Collin Winter (collinwinter) Date: 2007-03-09 22:33 Message: Logged In: YES user_id=1344176 Originator: NO Fixed in r54253 (for 2.6), r54255 (for 2.5.1). Thanks for the bug report! ---------------------------------------------------------------------- Comment By: Collin Winter (collinwinter) Date: 2007-03-09 19:32 Message: Logged In: YES user_id=1344176 Originator: NO hakker, you marked this as "fixed"; was that intentional? ---------------------------------------------------------------------- Comment By: Damon Kohler (damonkohler) Date: 2006-08-22 21:36 Message: Logged In: YES user_id=705317 Patch 1545011 is a proposed fix. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1531963&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com