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 hakker_de
Recipients
Date 2006-07-31.19:58:14
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 14:41:49adminlinkissue1531963 messages
2007-08-23 14:41:49admincreate