lib/httpx/plugins/proxy/socks5.rb in httpx-0.7.0 vs lib/httpx/plugins/proxy/socks5.rb in httpx-0.8.0

- old
+ new

@@ -29,10 +29,14 @@ :authenticating consume end end + def connecting? + super || @state == :authenticating || @state == :negotiating + end + private def transition(nextstate) return super unless @options.proxy && @options.proxy.uri.scheme == "socks5" @@ -58,10 +62,10 @@ when :connected return unless @state == :negotiating @parser = nil end - log(level: 1, label: "SOCKS5: ") { "#{nextstate}: #{@write_buffer.to_s.inspect}" } unless nextstate == :open + log(level: 1) { "SOCKS5: #{nextstate}: #{@write_buffer.to_s.inspect}" } unless nextstate == :open super end def __socks5_proxy_connect @parser = SocksParser.new(@write_buffer, @options)