lib/httpx/connection.rb in httpx-0.14.4 vs lib/httpx/connection.rb in httpx-0.14.5

- old
+ new

@@ -358,9 +358,11 @@ break if interests == :r || @state == :closing || @state == :closed write_drained = false end unless interests == :r + send_pending if @state == :open + # return if socket is drained next unless (interests != :r || read_drained) && (interests != :w || write_drained) # gotta go back to the event loop. It happens when: