=== modified file 'lib/IO/Async/Listener.pm'
--- lib/IO/Async/Listener.pm 2015-04-04 12:33:27 +0000
+++ lib/IO/Async/Listener.pm 2015-04-04 12:40:09 +0000
@@ -128,7 +128,7 @@
Optional. Invoked if the C<accept> syscall indicates an error (other than
C<EAGAIN> or C<EWOULDBLOCK>). If not provided, failures of C<accept> will
-simply be ignored.
+be passed to the main C<on_error> handler.
=cut
@@ -295,7 +295,8 @@
$on_done->( $self, $result );
})->on_fail( sub {
my ( $message, undef, $socket, $dollarbang ) = @_;
- $self->maybe_invoke_event( on_accept_error => $socket, $dollarbang );
+ $self->maybe_invoke_event( on_accept_error => $socket, $dollarbang ) or
+ $self->invoke_error( "accept() failed - $dollarbang", accept => $socket, $dollarbang );
});
# Caller is not going to keep hold of the Future, so we have to ensure it