Message3139

Author asterio
Recipients amak, asterio
Date 2008-04-08.16:49:59
SpamBayes Score 0.0
Marked as misclassified No
Message-id <1207673399.62.0.649260114176.issue1021@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, was an accident while I was writing the Note.

Consider the following code:

                fd=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
                rnetLoc = ('127.0.0.1', 9000)
                fd.setblocking(0)
                fd.bind( rnetLoc ) # python fails here if address is in 
use                
                fd.listen(5)       # but jython fails here


If some code expects to detect an already binded address in bind() 
function then will fails as bind() does send any exception, but 
listen() does.

From my side I guess is a minor detail, just to be as near as possible 
to the python behaviour.

Regards,
--
Asterio
History
Date User Action Args
2008-09-12 00:29:27nrileysetspambayes_score: 0.493496 -> 0.0
2008-04-08 16:49:59asteriosetspambayes_score: 0.493496 -> 0.493496
recipients: + asterio, amak
2008-04-08 16:49:59asteriosetspambayes_score: 0.493496 -> 0.493496
messageid: <1207673399.62.0.649260114176.issue1021@psf.upfronthosting.co.za>
2008-04-08 16:49:59asteriolinkissue1021 messages
2008-04-08 16:49:59asteriocreate