Compare commits

..

No commits in common. "8559a3eef8973daaee527d5a48236088822e08c8" and "bc975f7b9be3da4422d803048d4c7971dab6a293" have entirely different histories.

4 changed files with 4 additions and 12 deletions

View File

@ -1,6 +0,0 @@
# 0.22.4
## Bugfixes
* fix happy eyeballs v2 bug where, once the first connection would be established, the remaining one would still end up in the coalescing loop, thereby closing itself via the `:tcp_open` callback.
* fix for faraday plugin parallel mode, where it'd hang if no requests would be made in the parallel block (@catlee)

View File

@ -147,10 +147,8 @@ module HTTPX
end end
new_connection.once(:tcp_open) do |new_conn| new_connection.once(:tcp_open) do |new_conn|
if new_conn != connection new_conn.merge(connection)
new_conn.merge(connection) connection.force_reset
connection.force_reset
end
end end
new_connection.once(:connect_error) do |err| new_connection.once(:connect_error) do |err|
if connection.connecting? if connection.connecting?

View File

@ -73,7 +73,7 @@ module HTTPX
end end
def params_hash_has_key?(hash, key) def params_hash_has_key?(hash, key)
return false if key.include?("[]") return false if /\[\]/.match?(key)
key.split(/[\[\]]+/).inject(hash) do |h, part| key.split(/[\[\]]+/).inject(hash) do |h, part|
next h if part == "" next h if part == ""

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module HTTPX module HTTPX
VERSION = "0.22.4" VERSION = "0.22.3"
end end