mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
reset parser only if reinitializing the connection
This commit is contained in:
parent
d8a24b2c63
commit
7877b4ee73
@ -348,6 +348,7 @@ module HTTPX
|
||||
transition(:closing)
|
||||
transition(:closed)
|
||||
emit(:reset)
|
||||
@parser.reset if @parser
|
||||
transition(:idle)
|
||||
transition(:open)
|
||||
end
|
||||
@ -396,7 +397,6 @@ module HTTPX
|
||||
|
||||
@io.close
|
||||
@read_buffer.clear
|
||||
@parser.reset if @parser
|
||||
if @keep_alive_timer
|
||||
@keep_alive_timer.cancel
|
||||
remove_instance_variable(:@keep_alive_timer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user