Re: socket-module: different behaviour on windows / unix when a timeout is set

2008-07-11 Thread Gabriel Genellina
En Wed, 09 Jul 2008 15:02:56 -0300, Mirko Vogt [EMAIL PROTECTED] escribi�: it seems that the socket-module behaves differently on unix / windows when a timeout is set. [...] Now I will change the code slightly - to be precise I set a timeout on the socket: # test.py import socket

Re: socket-module: different behaviour on windows / unix when a timeout is set

2008-07-11 Thread Mirko Vogt
Gabriel Genellina wrote: En Wed, 09 Jul 2008 15:02:56 -0300, Mirko Vogt [EMAIL PROTECTED] escribi�: it seems that the socket-module behaves differently on unix / windows when a timeout is set. [...] Now I will change the code slightly - to be precise I set a timeout on the socket: #

Re: socket-module: different behaviour on windows / unix when a timeout is set

2008-07-10 Thread A.T.Hofkamp
On 2008-07-09, Mirko Vogt [EMAIL PROTECTED] wrote: Is that behaviour common or even documented? Found nothing. Second sentence in the socket module documentation: Note: Some behavior may be platform dependent, since calls are made to the operating system socket APIs. So yes, what you found is

Re: socket-module: different behaviour on windows / unix when a timeout is set

2008-07-10 Thread Grant Edwards
On 2008-07-10, A.T.Hofkamp [EMAIL PROTECTED] wrote: On 2008-07-09, Mirko Vogt [EMAIL PROTECTED] wrote: Is that behaviour common or even documented? Found nothing. Second sentence in the socket module documentation: Note: Some behavior may be platform dependent, since calls are made to the

socket-module: different behaviour on windows / unix when a timeout is set

2008-07-09 Thread Mirko Vogt
Hey, it seems that the socket-module behaves differently on unix / windows when a timeout is set. Here an example: # test.py import socket sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM) print 'trying to connect...' sock.connect(('127.0.0.1',)) print 'connected!' # executed on