httpx 0.23.1 → 0.23.3

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: 4b2b08112684f9bd8729c77dba080f3c6a6ae1f49f9edf64064e8f5511814ec9
4
- data.tar.gz: 27c4c7e04269ef2c70c7a1b47d468344ffe40bd95ecaddea4fae383e23e7828b
3
+ metadata.gz: 9a826e525e4ea1e2836566d70fa8af5231580bc0836482a86b4af8a159785895
4
+ data.tar.gz: 13d7e254551f8b730361f347b9570e4af4544c63d98ef1ca9a25eea51e10b340
5
5
  SHA512:
6
- metadata.gz: a5e434e9ff70a0c1c70fc35d5c5a9a854c4ac4d205a1116a92594c59dd7a70abe9985623c7d7c96348a15b73a51cf08244f6e8ae0ffb9a61760249b5213e6d8f
7
- data.tar.gz: 3eb75f06e34ff49cf998eeccb70a316acfa4962e6663fd6c59e03cbfdb1200ce5f6580fed0baac2e034b2106cba163bb0fd6454cf008a58bac5bcc6babb744af
6
+ metadata.gz: e1db33022d9e917911a570cd4773078dfe5feb4198fc58e65da04cfcc278fb8569af4b8754b60b7545897546f8da05f62b56557c132f02dfcfc628923d605f47
7
+ data.tar.gz: bffcd04f84fd74c825d186215d919b943349c8cd7672bf030c81696956f5625216e4118e8a16f6cdea8321f62d8fc018fbd17ca8dbeb2ad667ca847aca46de44
@@ -0,0 +1,5 @@
1
+ # 0.23.2
2
+
3
+ ## Bugfixes
4
+
5
+ * fix missing variable on code path in the native resolver.
@@ -0,0 +1,6 @@
1
+ # 0.23.3
2
+
3
+ ## Bugfixes
4
+
5
+ * native resolver: fix missing exception variable in the DNS error code path.
6
+ * native resolver: fixed short DNS packet handling when using TCP.
@@ -198,15 +198,16 @@ module HTTPX
198
198
  return
199
199
  else
200
200
  size = @read_buffer[0, 2].unpack1("n")
201
+ buffer = @read_buffer.byteslice(2..-1)
201
202
 
202
203
  if size > @read_buffer.bytesize
203
204
  # only do buffer logic if it's worth it, and the whole packet isn't here already
204
205
  @large_packet = Buffer.new(size)
205
- @large_packet << @read_buffer.byteslice(2..-1)
206
+ @large_packet << buffer
206
207
 
207
208
  next
208
209
  else
209
- parse(@read_buffer)
210
+ parse(buffer)
210
211
  end
211
212
  end
212
213
  else # udp
@@ -266,7 +267,6 @@ module HTTPX
266
267
  reset_hostname(hostname)
267
268
  @connections.delete(connection)
268
269
  ex = NativeResolveError.new(connection, connection.origin.host, "unknown DNS error (error code #{result})")
269
- ex.set_backtrace(e.backtrace)
270
270
  raise ex
271
271
  when :decode_error
272
272
  hostname, connection = @queries.first
@@ -281,7 +281,7 @@ module HTTPX
281
281
  def parse_addresses(addresses)
282
282
  if addresses.empty?
283
283
  # no address found, eliminate candidates
284
- _, connection = @queries.first
284
+ hostname, connection = @queries.first
285
285
  reset_hostname(hostname)
286
286
  @connections.delete(connection)
287
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.1"
4
+ VERSION = "0.23.3"
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.1
4
+ version: 0.23.3
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-30 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -96,6 +96,8 @@ extra_rdoc_files:
96
96
  - doc/release_notes/0_22_5.md
97
97
  - doc/release_notes/0_23_0.md
98
98
  - doc/release_notes/0_23_1.md
99
+ - doc/release_notes/0_23_2.md
100
+ - doc/release_notes/0_23_3.md
99
101
  - doc/release_notes/0_2_0.md
100
102
  - doc/release_notes/0_2_1.md
101
103
  - doc/release_notes/0_3_0.md
@@ -184,6 +186,8 @@ files:
184
186
  - doc/release_notes/0_22_5.md
185
187
  - doc/release_notes/0_23_0.md
186
188
  - doc/release_notes/0_23_1.md
189
+ - doc/release_notes/0_23_2.md
190
+ - doc/release_notes/0_23_3.md
187
191
  - doc/release_notes/0_2_0.md
188
192
  - doc/release_notes/0_2_1.md
189
193
  - doc/release_notes/0_3_0.md