Subj : Re: Killing threads To : comp.programming.threads From : Phil Frisbie, Jr. Date : Wed Aug 17 2005 12:38 am Srini Palthepu wrote: >>Why not add the logic to the threads to detect a timed out condition and clean >>up after themselves? > > How do a thread that is blocked doing the work > detect timeout? By blocking on functions that allow a time-out, like select(). And maybe breaking up the work into smaller units to see if the client closed the connection because you took too long to get back to them. > In my case, the main thread gets a > reset request from client upon timeout. How can the main thread get a reset request from the client if the client is timing out? Tell us more about your architecture and maybe we can be more help. -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com .