mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-07-15 00:00:55 -04:00
Compare commits
4 Commits
bc975f7b9b
...
8559a3eef8
Author | SHA1 | Date | |
---|---|---|---|
|
8559a3eef8 | ||
|
f69af8ddfe | ||
|
18cb21888f | ||
|
ff59a4c279 |
6
doc/release_notes/0_22_4.md
Normal file
6
doc/release_notes/0_22_4.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# 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)
|
@ -147,9 +147,11 @@ 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?
|
||||||
# main connection has the requests
|
# main connection has the requests
|
||||||
|
@ -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 /\[\]/.match?(key)
|
return false if key.include?("[]")
|
||||||
|
|
||||||
key.split(/[\[\]]+/).inject(hash) do |h, part|
|
key.split(/[\[\]]+/).inject(hash) do |h, part|
|
||||||
next h if part == ""
|
next h if part == ""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module HTTPX
|
module HTTPX
|
||||||
VERSION = "0.22.3"
|
VERSION = "0.22.4"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user