httpx 0.23.2 → 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: 1198b505a01534dd942900f5cd82654459fbab18e89e8c4e3291717d36cfa777
4
- data.tar.gz: 02c767977043d0d80faa74d1175de23931ab5bb097fd11004df145fd1e3c2216
3
+ metadata.gz: 9a826e525e4ea1e2836566d70fa8af5231580bc0836482a86b4af8a159785895
4
+ data.tar.gz: 13d7e254551f8b730361f347b9570e4af4544c63d98ef1ca9a25eea51e10b340
5
5
  SHA512:
6
- metadata.gz: 0e8bfbf580750b9fa04fd116e9a1a2b341ed488771aa10021c496d98412b0d9bac87ee5d4963d48648b8df2f85445060953e43548bb0ffab7a8f126001365aad
7
- data.tar.gz: 49297a78674a918c0cd3e10e40748bad72347fd2e4e3df9df43f16b0e179238a7271d64306e2db4eefa2160e38e8ee2f5768c9da2f2f8cebc1c1db97b8fc0821
6
+ metadata.gz: e1db33022d9e917911a570cd4773078dfe5feb4198fc58e65da04cfcc278fb8569af4b8754b60b7545897546f8da05f62b56557c132f02dfcfc628923d605f47
7
+ data.tar.gz: bffcd04f84fd74c825d186215d919b943349c8cd7672bf030c81696956f5625216e4118e8a16f6cdea8321f62d8fc018fbd17ca8dbeb2ad667ca847aca46de44
@@ -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
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.2"
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.2
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-05-05 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
@@ -97,6 +97,7 @@ extra_rdoc_files:
97
97
  - doc/release_notes/0_23_0.md
98
98
  - doc/release_notes/0_23_1.md
99
99
  - doc/release_notes/0_23_2.md
100
+ - doc/release_notes/0_23_3.md
100
101
  - doc/release_notes/0_2_0.md
101
102
  - doc/release_notes/0_2_1.md
102
103
  - doc/release_notes/0_3_0.md
@@ -186,6 +187,7 @@ files:
186
187
  - doc/release_notes/0_23_0.md
187
188
  - doc/release_notes/0_23_1.md
188
189
  - doc/release_notes/0_23_2.md
190
+ - doc/release_notes/0_23_3.md
189
191
  - doc/release_notes/0_2_0.md
190
192
  - doc/release_notes/0_2_1.md
191
193
  - doc/release_notes/0_3_0.md