[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luasocket: how to use 'keepalive' ?
- From: Peter Odding <peter@...>
- Date: Mon, 17 Jan 2011 18:22:56 +0100
Is there an example about how processes are notified, which kind of
notifications are sent out, how to handle them, etc ?
If I'm not mistaken you're thinking about this on the wrong level; the
handling of the keep-alive option is internal to the operating system
socket. Your Lua code doesn't receive any 'notifications' except an
error when you try to use a socket that's been closed because of a
timeout (despite having set the keep-alive option). That's it really.
- Peter Odding
PS. If you really were looking for how TCP keep-alive works you might
find http://en.wikipedia.org/wiki/Keepalive#TCP_Keepalive a useful