httpx 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 862a55f8ae6fa87e3630f33b9a831ab0867a9f0e7e97078c3bcf1e180bbb896a
4
- data.tar.gz: a7664a44427245f87a93d7dd20404088a97b178a6bc0c7559b1bd0caa246a83a
3
+ metadata.gz: e9511c9d7e388161145434f6648b9d7d84b6144fd5b7cbdfd24bf4dcc1eae592
4
+ data.tar.gz: 2e51144c54c1bf0d10d5c5df5587892b5b4672239d57417a608e3ae09463e22b
5
5
  SHA512:
6
- metadata.gz: ec4fbde6b88bfc5886f651ef755f039c9037e90877dad38fc439d60af95b755e6946c41bee474db91bd801c8b8220371cf9adfd781aa3d4251f1f4de992dc356
7
- data.tar.gz: f230f58ebff2fba1f52af295af8489aaecb23faf4c55e7eecd2735a968c3ff40788a93ab6c4c2426a5fe50b4d981dc1320315ca0c672051e1e5d67a96d5ac365
6
+ metadata.gz: fe4da43f48e9a7486a25388fb4bd2ee75400185e2ad509a3deed679b4f0fafc44a427054ede4d3a85844938289144913172a485d277250065b0e3df511a30e13
7
+ data.tar.gz: b38686a69bededd7daba19ef0926ca52c1e02083c6c84e5b04845c6c866b83ed288516c98c2d08b6e675b1994ca73bb1806f630eb8880c9fc7bbfd4a57bba32a
@@ -0,0 +1,6 @@
1
+ # 1.5.1
2
+
3
+ ## Bugfixes
4
+
5
+ * connection errors on persistent connections which have just been checked out from the pool no longer account for retries bookkeeping; the assumption should be that, if a connection has been checked into the pool in an open state, chances are, when it eventually gets checked out, it may be corrupt. This issue was more exacerbated in `:persistent` plugin connections, which by design have a retry of 1, thus failing often immediately after check out without a legitimate request try.
6
+ * native resolver: fix issue with process interrupts during DNS request, which caused a busy loop when closing the selector.
@@ -553,6 +553,10 @@ module HTTPX
553
553
  return unless @state == :inactive
554
554
 
555
555
  transition(:active)
556
+ # mark request as ping, as this inactive connection may have been
557
+ # closed by the server, and we don't want that to influence retry
558
+ # bookkeeping.
559
+ request.ping!
556
560
  end
557
561
 
558
562
  def build_parser(protocol = @io.protocol)
data/lib/httpx/options.rb CHANGED
@@ -227,7 +227,7 @@ module HTTPX
227
227
  %i[
228
228
  request_class response_class headers_class request_body_class
229
229
  response_body_class connection_class options_class
230
- pool_class pool_options
230
+ pool_class
231
231
  io fallback_protocol debug debug_redact resolver_class
232
232
  compress_request_body decompress_response_body
233
233
  persistent close_on_fork
@@ -63,7 +63,10 @@ module HTTPX
63
63
  # array may change during iteration
64
64
  selectables = @selectables.reject(&:inflight?)
65
65
 
66
- selectables.each(&:terminate)
66
+ selectables.delete_if do |sel|
67
+ sel.terminate
68
+ sel.state == :closed
69
+ end
67
70
 
68
71
  until selectables.empty?
69
72
  next_tick
data/lib/httpx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "1.5.0"
4
+ VERSION = "1.5.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-16 00:00:00.000000000 Z
10
+ date: 2025-06-09 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: http-2
@@ -154,6 +154,7 @@ extra_rdoc_files:
154
154
  - doc/release_notes/1_4_3.md
155
155
  - doc/release_notes/1_4_4.md
156
156
  - doc/release_notes/1_5_0.md
157
+ - doc/release_notes/1_5_1.md
157
158
  files:
158
159
  - LICENSE.txt
159
160
  - README.md
@@ -280,6 +281,7 @@ files:
280
281
  - doc/release_notes/1_4_3.md
281
282
  - doc/release_notes/1_4_4.md
282
283
  - doc/release_notes/1_5_0.md
284
+ - doc/release_notes/1_5_1.md
283
285
  - lib/httpx.rb
284
286
  - lib/httpx/adapters/datadog.rb
285
287
  - lib/httpx/adapters/faraday.rb