Permalink
Browse files

Merge pull request #25 from und3f/master

High CPU load on terminated post data
  • Loading branch information...
2 parents c992337 + fba6106 commit dc8778cf08a02c342f72319702e10a71cdd8a55d @miyagawa committed Feb 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Twiggy/Server.pm
View
@@ -268,6 +268,8 @@ sub _read_chunk {
return 1;
} elsif ($! and $! != EAGAIN && $! != EINTR && $! != WSAEWOULDBLOCK) {
die $!;
+ } elsif (!$!) {
+ die "client disconnected";
}
}

0 comments on commit dc8778c

Please sign in to comment.