mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
force http2 new parser on connection reset
This commit is contained in:
parent
e5f327c82a
commit
1bde88e755
@ -358,6 +358,8 @@ module HTTPX
|
||||
|
||||
@io.close
|
||||
@read_buffer.clear
|
||||
@parser.reset if @parser
|
||||
|
||||
remove_instance_variable(:@timeout) if defined?(@timeout)
|
||||
when :already_open
|
||||
nextstate = :open
|
||||
|
@ -30,6 +30,10 @@ module HTTPX
|
||||
init_connection
|
||||
end
|
||||
|
||||
def reset
|
||||
init_connection
|
||||
end
|
||||
|
||||
def close
|
||||
@connection.goaway unless @connection.state == :closed
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user