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