Skip to content
Browse files

AIO

  • Loading branch information...
1 parent 38fa3f3 commit f9e415d33673c4fa7b093e13bd14d323b7f9268e @miyagawa committed Oct 6, 2009
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;

0 comments on commit f9e415d

Please sign in to comment.
Something went wrong with that request. Please try again.