in reply to Re: socket lost by buffer overflow
in thread socket lost by buffer overflow
Hi :-)
Dug's method will handle when the os notifies us when the tcp keepalive mechanism determines that the client is no longer there if the client doesn't close the tcp connection itself.
elwarren's method will proactively perform a 'ping' to the client to determine if the client is no longer there.
Which to use? Depends if you when you need to know when a client connection disappears. Do you really need to know if it disappears within 10 seconds?
IMHO, a connectionless (udp based) would be preferrable. There is a simple example in the Perl Cookbook IIRC.
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: socket lost by buffer overflow
by elwarren (Priest) on Dec 22, 2004 at 17:09 UTC |