lib/httpx/connection.rb in httpx-1.2.3 vs lib/httpx/connection.rb in httpx-1.2.4

- old
+ new

@@ -239,11 +239,11 @@ # when pushing a request into an existing connection, we have to check whether there # is the possibility that the connection might have extended the keep alive timeout. # for such cases, we want to ping for availability before deciding to shovel requests. log(level: 3) { "keep alive timeout expired, pinging connection..." } @pending << request - parser.ping transition(:active) if @state == :inactive + parser.ping return end send_request_to_parser(request) else