Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Suppress 400 if client disconnected

  • Loading branch information...
commit 2d18b7ff9dc47aa6b492d671b4765173b63299fc 1 parent 24c5eb8
Adam Thomason authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/Twiggy/Server.pm
4 lib/Twiggy/Server.pm
@@ -160,7 +160,7 @@ sub _accept_handler {
160 160
161 161 1;
162 162 }) {
163   - $self->_bad_request($sock);
  163 + $self->_bad_request($sock) unless $@ eq 'client disconnected';
164 164 }
165 165 };
166 166 }
@@ -217,7 +217,7 @@ sub _create_req_parsing_watcher {
217 217 } catch {
218 218 undef $headers_io_watcher;
219 219 undef $timeout_timer;
220   - $self->_bad_request($sock);
  220 + $self->_bad_request($sock) unless $_ eq 'client disconnected';
221 221 }
222 222 };
223 223 }

0 comments on commit 2d18b7f

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