Re: Simulating a send() with no data
- From: "Eugene Gershnik" <gershnik@xxxxxxxxxxx>
- Date: Fri, 4 Nov 2005 10:51:56 -0800
Adam Ryan wrote:
> Eugene Gershnik
> Nov 3, 6:26 pm show options
>
>> So it doesn't really matter if the client had disconnected or just
>> sits silently doing nothing, right?
>
> yes, if the client disconnects abnormally, then the server needs to
> take active steps immediately to clean up processes. The only way so
> far to tell if the client disconnected is to send the client some
> data. BUT doing this messes up the clients output.
Yes because this is the way TCP/IP works. The connection in TCP/IP is not a
physical thing but an algorithmic "virtual reality".
The only two things you can do is to either rewrite the client or use
timeouts.
--
Eugene
http://www.gershnik.com
.
- References:
- Simulating a send() with no data
- From: RyanAdamM@xxxxxxxxx
- Re: Simulating a send() with no data
- From: Eugene Gershnik
- Re: Simulating a send() with no data
- From: Adam Ryan
- Simulating a send() with no data
- Prev by Date: DnsModifyRecordsInSet
- Next by Date: Multithread safety
- Previous by thread: Re: Simulating a send() with no data
- Next by thread: High CPU Load when running simple socket app.
- Index(es):
Relevant Pages
|