lib/httpx/plugins/proxy/socks5.rb in httpx-0.11.3 vs lib/httpx/plugins/proxy/socks5.rb in httpx-0.12.0
- old
+ new
@@ -33,9 +33,17 @@
def connecting?
super || @state == :authenticating || @state == :negotiating
end
+ def interests
+ if @state == :connecting || @state == :authenticating || @state == :negotiating
+ return @write_buffer.empty? ? :r : :w
+ end
+
+ super
+ end
+
private
def transition(nextstate)
return super unless @options.proxy && @options.proxy.uri.scheme == "socks5"