httpx 0.22.3 → 0.22.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39a428f7a8a6747513b56a5e2b4216569363b71baa273d1904b3805f6385e1aa
4
- data.tar.gz: 900178247910015b23dcc199df570dadde117d3837efecc5b7100e6478054a77
3
+ metadata.gz: 4d5e3e33caae5726e0c7630721296abac27073ed1fc071a7bb8c9467a2b1b2e0
4
+ data.tar.gz: f4344aee8002ecbe64d6e3321e1ca9f18507e2fd70223890211e05ab15967479
5
5
  SHA512:
6
- metadata.gz: 77d450b37b3dacbc998b4a659d2ddfe80ae0fcf38cbbad79a2ab8df10522f0cc69e57979960559503bd9a00eb775b1e664f3ada81d8aaad0a1ae29765ff4868c
7
- data.tar.gz: 40d9e2b9cb187f0610d5985128227aedc6ed2c3cde55adcb69e6abd20fd9048d96fb05357e320bdb90442bb3553cacca5aa0368e5455344034d654c902412318
6
+ metadata.gz: 9c42940a7467f91f66779bdf26b83043fb99b17033d69cee7d7656946abc03a064f1b9952889b3c783b757429d5cc6d476575ff9ab347524738152f846c3ea91
7
+ data.tar.gz: 6199caed20de123a10af893a85c2657cc4b4bfb6645592a5155743e74a37ff754d3fcf404c8bb28582bead974b35c6f872d40d8b5ac77806bdc4b34992847e7a
@@ -0,0 +1,6 @@
1
+ # 0.22.4
2
+
3
+ ## Bugfixes
4
+
5
+ * 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.
6
+ * fix for faraday plugin parallel mode, where it'd hang if no requests would be made in the parallel block (@catlee)
@@ -169,6 +169,8 @@ module Faraday
169
169
  end
170
170
 
171
171
  def run
172
+ return unless @handlers.last
173
+
172
174
  env = @handlers.last.env
173
175
 
174
176
  session = HTTPX.session.with(options_from_env(env))
data/lib/httpx/pool.rb CHANGED
@@ -147,8 +147,10 @@ module HTTPX
147
147
  end
148
148
 
149
149
  new_connection.once(:tcp_open) do |new_conn|
150
- new_conn.merge(connection)
151
- connection.force_reset
150
+ if new_conn != connection
151
+ new_conn.merge(connection)
152
+ connection.force_reset
153
+ end
152
154
  end
153
155
  new_connection.once(:connect_error) do |err|
154
156
  if connection.connecting?
@@ -73,7 +73,7 @@ module HTTPX
73
73
  end
74
74
 
75
75
  def params_hash_has_key?(hash, key)
76
- return false if /\[\]/.match?(key)
76
+ return false if key.include?("[]")
77
77
 
78
78
  key.split(/[\[\]]+/).inject(hash) do |h, part|
79
79
  next h if part == ""
data/lib/httpx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "0.22.3"
4
+ VERSION = "0.22.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.3
4
+ version: 0.22.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-25 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -92,6 +92,7 @@ extra_rdoc_files:
92
92
  - doc/release_notes/0_22_1.md
93
93
  - doc/release_notes/0_22_2.md
94
94
  - doc/release_notes/0_22_3.md
95
+ - doc/release_notes/0_22_4.md
95
96
  - doc/release_notes/0_2_0.md
96
97
  - doc/release_notes/0_2_1.md
97
98
  - doc/release_notes/0_3_0.md
@@ -176,6 +177,7 @@ files:
176
177
  - doc/release_notes/0_22_1.md
177
178
  - doc/release_notes/0_22_2.md
178
179
  - doc/release_notes/0_22_3.md
180
+ - doc/release_notes/0_22_4.md
179
181
  - doc/release_notes/0_2_0.md
180
182
  - doc/release_notes/0_2_1.md
181
183
  - doc/release_notes/0_3_0.md
@@ -388,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
388
390
  - !ruby/object:Gem::Version
389
391
  version: '0'
390
392
  requirements: []
391
- rubygems_version: 3.3.7
393
+ rubygems_version: 3.4.1
392
394
  signing_key:
393
395
  specification_version: 4
394
396
  summary: HTTPX, to the future, and beyond