Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

AIO

  • Loading branch information...
commit f9e415d33673c4fa7b093e13bd14d323b7f9268e 1 parent 38fa3f3
@miyagawa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Plack/Server/Coro.pm
View
2  lib/Plack/Server/Coro.pm
@@ -86,7 +86,7 @@ sub process_request {
my $offset = 0;
while (1) {
my $sent = aio_sendfile( $fh->fh, $res->[2], $offset, $length - $offset );
- $offset += $sent;
+ $offset += $sent if $sent > 0;
last if $offset >= $length;
}
return;
Please sign in to comment.
Something went wrong with that request. Please try again.