in reply to Re^7: Timeout for an established connection
in thread Timeout for an established connection

Your answer is wrong, because calling IO::Select, as well as IO::Poll, never returns zero.
In details here
and here
  • Comment on Re^8: Timeout for an established connection