mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
allow connections to be closed before they even started, if some error coming from the parser requires it (can happen if user input is evaluated in httpx time and fails)
This commit is contained in:
parent
eb5bdc1fe6
commit
1e4177a079
@ -448,7 +448,7 @@ module HTTPX
|
||||
end
|
||||
parser.on(:close) do |force|
|
||||
transition(:closing)
|
||||
if force
|
||||
if force || @state == :idle
|
||||
transition(:closed)
|
||||
emit(:close)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user