in reply to POE: How can I detect server closed my connection?

You are not handling ErrorEvent from your POE::Wheel::ReadWrite objects. EOF from the remote endpoint is reported as read error 0. Other errors may occur, such as ECONNRESET (Connection reset by peer).

Sorry we missed you on irc.perl.org #poe. It was 5:45AM, and I was asleep. :)

  • Comment on Re: POE: How can I detect server closed my connection?

Replies are listed 'Best First'.
Re^2: POE: How can I detect server closed my connection?
by woosley (Beadle) on Jul 20, 2011 at 04:58 UTC

    Apparently we are in the different time zone~~~ it was afternoon at that time for me :)

    ErrorEvent is what I want, thanks for the help.