IO::Sockets timeout implementation confusionby Sol-Invictus (Scribe)
|on Jan 31, 2004 at 01:58 UTC||Need Help??|
Sol-Invictus has asked for the
wisdom of the Perl Monks concerning the following question:
On a tcp server socket, I want to use a timeout to log out clients that have become inactive after 5 mins, so after reading this:
(from IO::Socket pod)
I wrote a socket which opens like this:
but it doesn't time out the clients. Looking for answers I went here:
(from IO::Select pod)
So now I'm really confused -
Firstly: What is the socket timeout I've set up actually doing?
Secondly: is the "core select" mentioned the same as the one I've tried to call on the socket at startup time?
Thirdly: Should I be checking for return values to catch the timeout event, if so where?