Module: HTTPX::Plugins::Proxy::HTTP::ConnectionMethods

Defined in:
lib/httpx/plugins/proxy/http.rb

Instance Method Summary collapse

Instance Method Details

#force_closeObject



49
50
51
52
53
54
55
56
57
58
# File 'lib/httpx/plugins/proxy/http.rb', line 49

def force_close(*)
  if @state == :connecting
    # proxy connect related requests should not be reenqueed
    @parser.reset
    @inflight -= @parser.pending.size
    @parser.pending.clear
  end

  super
end