mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
http1: when resetting due to peer not supporting pipelining, do a full reset instead of half-closing
This commit is contained in:
parent
cebc1cb9ea
commit
bc1e55cef2
@ -325,8 +325,10 @@ module HTTPX
|
||||
transition(:closing)
|
||||
end
|
||||
parser.on(:reset) do
|
||||
transition(:closing)
|
||||
unless parser.empty?
|
||||
if parser.empty?
|
||||
reset
|
||||
else
|
||||
transition(:closing)
|
||||
transition(:closed)
|
||||
emit(:reset)
|
||||
transition(:idle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user