Permalink
Browse files

Fixed broken data processing

In case of termination processing of POST data Twiggy entered infynity
loop.
  • Loading branch information...
1 parent 505bb86 commit fba61060de601c8e0d3b5e416b4d136ea7c31528 @und3f und3f committed Feb 20, 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 fba6106

Please sign in to comment.