allow proxy channels to properly reset when trapped in proxy connection protocols

This commit is contained in:
HoneyryderChuck 2018-06-29 17:27:55 +01:00
parent 7112ca3938
commit d49158908f
2 changed files with 7 additions and 2 deletions

View File

@ -132,6 +132,13 @@ module HTTPX
consume
end
end
def reset
@state = :open
transition(:closing)
transition(:closed)
emit(:close)
end
end
class ProxySSL < SSL

View File

@ -53,8 +53,6 @@ module HTTPX
super
end
private
def on_socks_error(message)
ex = Error.new(message)
ex.set_backtrace(caller)