hg wrote: > Facundo Batista wrote: > >> hg wrote: >> >>> Do you mean use select ? >> No, socket's timeout: >> >>>>> import socket >>>>> s = socket.socket() >>>>> s.settimeout(5) >>>>> ... >> Regards, >> >> -- >> . Facundo >> . >> Blog: http://www.taniquetil.com.ar/plog/ >> PyAr: http://www.python.org/ar/ > > > My issue with that is the effect on write: I only want a timeout on read ... > but anyway ... > If you want selective timeout behaviour then yes, you should use select.
regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden Recent Ramblings http://holdenweb.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list