httpx 0.23.0 → 0.23.2

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: 71f84ab5eb126b7c22ceeabf6ef36935e678376ad79e3585a1c8af0cdadcb36c
4
- data.tar.gz: 98169826112b92768e6592ec9dcc5a0ebf0dcc34f063a4480d17b4ee4bc3f345
3
+ metadata.gz: 1198b505a01534dd942900f5cd82654459fbab18e89e8c4e3291717d36cfa777
4
+ data.tar.gz: 02c767977043d0d80faa74d1175de23931ab5bb097fd11004df145fd1e3c2216
5
5
  SHA512:
6
- metadata.gz: 3ebd7512c81d95e87284d5a622d473df66a618597b502eccb17cb7ec738364f46d2dec85b1b63940b6182356ccd11caaef0867f56f671320d3a9f9c04e6ad47b
7
- data.tar.gz: e98bb305329b8982414eb95d2455ef436703ba328175ddd383170c68463aa7d1b83721ac9ffd74fdd91190b0ce055668eac8c67c23648ac7493dfdc01d96e3a6
6
+ metadata.gz: 0e8bfbf580750b9fa04fd116e9a1a2b341ed488771aa10021c496d98412b0d9bac87ee5d4963d48648b8df2f85445060953e43548bb0ffab7a8f126001365aad
7
+ data.tar.gz: 49297a78674a918c0cd3e10e40748bad72347fd2e4e3df9df43f16b0e179238a7271d64306e2db4eefa2160e38e8ee2f5768c9da2f2f8cebc1c1db97b8fc0821
@@ -0,0 +1,5 @@
1
+ # 0.23.1
2
+
3
+ ## Bugfixes
4
+
5
+ * fixed regression causing dns candidate names not being tried after first one fails.
@@ -0,0 +1,5 @@
1
+ # 0.23.2
2
+
3
+ ## Bugfixes
4
+
5
+ * fix missing variable on code path in the native resolver.
@@ -244,10 +244,14 @@ module HTTPX
244
244
  when :no_domain_found
245
245
  # Indicates no such domain was found.
246
246
  hostname, connection = @queries.first
247
- reset_hostname(hostname)
247
+ reset_hostname(hostname, reset_candidates: false)
248
248
 
249
- @connections.delete(connection)
250
- raise NativeResolveError.new(connection, connection.origin.host, "name or service not known (#{hostname})")
249
+ unless @queries.value?(connection)
250
+ @connections.delete(connection)
251
+ raise NativeResolveError.new(connection, connection.origin.host, "name or service not known")
252
+ end
253
+
254
+ resolve
251
255
  when :message_truncated
252
256
  # TODO: what to do if it's already tcp??
253
257
  return if @socket_type == :tcp
@@ -277,7 +281,7 @@ module HTTPX
277
281
  def parse_addresses(addresses)
278
282
  if addresses.empty?
279
283
  # no address found, eliminate candidates
280
- _, connection = @queries.first
284
+ hostname, connection = @queries.first
281
285
  reset_hostname(hostname)
282
286
  @connections.delete(connection)
283
287
  raise NativeResolveError.new(connection, connection.origin.host)
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.23.0"
4
+ VERSION = "0.23.2"
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.23.0
4
+ version: 0.23.2
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-04-29 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -95,6 +95,8 @@ extra_rdoc_files:
95
95
  - doc/release_notes/0_22_4.md
96
96
  - doc/release_notes/0_22_5.md
97
97
  - doc/release_notes/0_23_0.md
98
+ - doc/release_notes/0_23_1.md
99
+ - doc/release_notes/0_23_2.md
98
100
  - doc/release_notes/0_2_0.md
99
101
  - doc/release_notes/0_2_1.md
100
102
  - doc/release_notes/0_3_0.md
@@ -182,6 +184,8 @@ files:
182
184
  - doc/release_notes/0_22_4.md
183
185
  - doc/release_notes/0_22_5.md
184
186
  - doc/release_notes/0_23_0.md
187
+ - doc/release_notes/0_23_1.md
188
+ - doc/release_notes/0_23_2.md
185
189
  - doc/release_notes/0_2_0.md
186
190
  - doc/release_notes/0_2_1.md
187
191
  - doc/release_notes/0_3_0.md