send with timeout socket

Bryan Olson fakeaddress at nowhere.org
Fri Sep 22 16:46:05 EDT 2006


Stéphane Ninin wrote:
> I want to make sure that, if nothing is sent after some time,
> if event "terminated" is set, 
> then the thread doesnot spend more time trying to send something which 
> has become useless.

You should be good then. The timeout is on each send(), and send
times out if and only if the socket remains not ready for
output.


-- 
--Bryan



More information about the Python-list mailing list