mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-09 00:02:50 -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)
|
transition(:closing)
|
||||||
end
|
end
|
||||||
parser.on(:reset) do
|
parser.on(:reset) do
|
||||||
|
if parser.empty?
|
||||||
|
reset
|
||||||
|
else
|
||||||
transition(:closing)
|
transition(:closing)
|
||||||
unless parser.empty?
|
|
||||||
transition(:closed)
|
transition(:closed)
|
||||||
emit(:reset)
|
emit(:reset)
|
||||||
transition(:idle)
|
transition(:idle)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user