lib/httpx/connection.rb in httpx-1.1.0 vs lib/httpx/connection.rb in httpx-1.1.1

- old
+ new

@@ -271,11 +271,11 @@ @pending << request end end def timeout - return @timeout if defined?(@timeout) + return @timeout if @timeout return @options.timeout[:connect_timeout] if @state == :idle @options.timeout[:operation_timeout] end @@ -516,11 +516,10 @@ if parser.empty? reset else transition(:closing) transition(:closed) - emit(:reset) @parser.reset if @parser transition(:idle) transition(:open) end @@ -615,10 +614,10 @@ end def purge_after_closed @io.close if @io @read_buffer.clear - remove_instance_variable(:@timeout) if defined?(@timeout) + @timeout = nil end def build_socket(addrs = nil) case @type when "tcp"