lib/httpx/connection/http2.rb in httpx-1.0.2 vs lib/httpx/connection/http2.rb in httpx-1.1.0
- old
+ new
@@ -33,10 +33,10 @@
@pings = []
@buffer = buffer
@handshake_completed = false
@wait_for_handshake = @settings.key?(:wait_for_handshake) ? @settings.delete(:wait_for_handshake) : true
@max_concurrent_requests = @options.max_concurrent_requests || MAX_CONCURRENT_REQUESTS
- @max_requests = @options.max_requests || Float::INFINITY
+ @max_requests = @options.max_requests
init_connection
end
def timeout
return @options.timeout[:operation_timeout] if @handshake_completed