lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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 starting point.