Message6676

Author amak
Recipients amak, irmen
Date 2011-10-15.10:31:47
SpamBayes Score 0.0052741724
Marked as misclassified No
Message-id <1318674707.72.0.646253779857.issue1806@psf.upfronthosting.co.za>
In-reply-to
Content
This is a known limitation of jython's socket module that is not going to change.

http://wiki.python.org/jython/NewSocketModule#Deferred_socket_creation_on_jython

The only thing that can be changed is the interim value returned from getsockname(): if you have a suggestion for more meaningful value, then feel free to propose it.

Guessing, by creating a socket when the user calls getsockname(), is the wrong thing to do.

It is still unknown at that stage if the socket is a client or a server socket: guessing which one it will be is not possible. (both client and server sockets can be bound to a local address: it is just not required for client sockets).

If you want to propose a different return value for getsockname in these circumstances, re-open this issue.
History
Date User Action Args
2011-10-15 10:31:47amaksetmessageid: <1318674707.72.0.646253779857.issue1806@psf.upfronthosting.co.za>
2011-10-15 10:31:47amaksetrecipients: + amak, irmen
2011-10-15 10:31:47amaklinkissue1806 messages
2011-10-15 10:31:47amakcreate