in reply to IO::Select->can_read isn't recognising closed INET connections
Reference: Unix Network Programming 2nd Ed Vol 1 page 166-167, by W. Richard Stevens@reads = $select->can_read() ; for( @reads ) { $data = <$_> ; if( $data == undef && $! != EWOULDBLOCK ) { # socket closed from the other end } }
|
|---|