Permalink
Browse files

Suppress 400 if client disconnected

  • Loading branch information...
1 parent 24c5eb8 commit 2d18b7ff9dc47aa6b492d671b4765173b63299fc @athomason athomason committed Aug 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Twiggy/Server.pm
View
4 lib/Twiggy/Server.pm
@@ -160,7 +160,7 @@ sub _accept_handler {
1;
}) {
- $self->_bad_request($sock);
+ $self->_bad_request($sock) unless $@ eq 'client disconnected';
}
};
}
@@ -217,7 +217,7 @@ sub _create_req_parsing_watcher {
} catch {
undef $headers_io_watcher;
undef $timeout_timer;
- $self->_bad_request($sock);
+ $self->_bad_request($sock) unless $_ eq 'client disconnected';
}
};
}

0 comments on commit 2d18b7f

Please sign in to comment.