in reply to Re^3: How to Multiplex a Client using IO::Select
in thread How to Multiplex a Client using IO::Select

Ya it is very good idea. I will try with it. Above code snippet is in while 1 loop how does the can_read or selection would know the service has disconnected.. Whether has_exception will take care of it??(will try it). Command on that.
  • Comment on Re^4: How to Multiplex a Client using IO::Select

Replies are listed 'Best First'.
Re^5: How to Multiplex a Client using IO::Select
by ikegami (Patriarch) on Oct 13, 2008 at 06:08 UTC

    On disconnect, can_read is triggered. Attempting to read will return 0.

    Update: Alternatively, eof should return true.