Skip to content

Commit

Permalink
AIO
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Oct 13, 2009
1 parent 38fa3f3 commit f9e415d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Plack/Server/Coro.pm
Expand Up @@ -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;
Expand Down

0 comments on commit f9e415d

Please sign in to comment.