lib/httpx/plugins/proxy/socks4.rb in httpx-0.11.3 vs lib/httpx/plugins/proxy/socks4.rb in httpx-0.12.0

- old
+ new

@@ -14,9 +14,17 @@ PROTOCOLS = %w[socks4 socks4a].freeze Error = Socks4Error module ConnectionMethods + def interests + if @state == :connecting + return @write_buffer.empty? ? :r : :w + end + + super + end + private def transition(nextstate) return super unless @options.proxy && PROTOCOLS.include?(@options.proxy.uri.scheme)