Skip to content

Commit

Permalink
ignore EPIPE, AE::Handle makes EPIPE when closed connection, but this…
Browse files Browse the repository at this point in the history
… is not important.
  • Loading branch information
tokuhirom committed Sep 15, 2009
1 parent 4511281 commit c40d99f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Plack/Impl/AnyEvent.pm
Expand Up @@ -9,6 +9,7 @@ use Plack::Util;
use HTTP::Status;
use Plack::HTTPParser qw(parse_http_request);
use IO::Handle;
use Errno ();

sub new {
my($class, %args) = @_;
Expand Down Expand Up @@ -51,7 +52,7 @@ sub run {
fh => $sock,
timeout => 3,
on_eof => sub { undef $handle; undef $env; },
on_error => sub { undef $handle; undef $env; warn $! },
on_error => sub { undef $handle; undef $env; warn $! if $! != Errno::EPIPE },
on_timeout => sub { undef $handle; undef $env; },
);

Expand Down

0 comments on commit c40d99f

Please sign in to comment.