Skip to content

Commit

Permalink
improved resilience of Mojo::IOLoop::Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 25, 2012
1 parent a10a63e commit 73b6cdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@ This file documents the revision history for Perl extension Mojolicious.

2.53 2012-02-25 00:00:00
- Improved Hypnotoad with many info level log messages.
- Improved resilience of Mojo::IOLoop::Stream.
- Improved documentation.
- Fixed Hypnotoad upgrade timeout bug.

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -113,7 +113,7 @@ sub _read {
return if $! ~~ [EAGAIN, EINTR, EWOULDBLOCK];

# Closed
return $self->close if $! == ECONNRESET;
return $self->close if $! ~~ [ECONNRESET, EPIPE];

# Read error
return $self->emit_safe(error => $!)->close;
Expand Down

0 comments on commit 73b6cdc

Please sign in to comment.