httpx 0.20.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes/0_19_8.md +1 -1
- data/doc/release_notes/0_20_0.md +1 -1
- data/doc/release_notes/0_20_1.md +5 -0
- data/lib/httpx/pool.rb +4 -4
- data/lib/httpx/version.rb +1 -1
- data/sig/pool.rbs +2 -2
- data/sig/selector.rbs +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d7bcf0e6c97e369caf28c209d551d4f9667745b6a6a530ae2efd328c611e0e5
|
4
|
+
data.tar.gz: 822c0437afcefb35e7d4319f91e71c5b4c81720bd0d7a7763db1d1f8bfbc4b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 747e7d2ca2a4aee92f1774473e9b38565fec3879ee6b6d0ab3c4eeb1313740c6bbd3648c8c6f21b40903f4bf9bc842647b531968debcda747652afb483577b11
|
7
|
+
data.tar.gz: 88d3bafe38437bebb42960d980dddc85e9e12a917c492203744ded3f93c79736feedf839604cd1a4b080a59c64c96c26c545808cc29d19bcdaa93fa55154bbef
|
data/doc/release_notes/0_19_8.md
CHANGED
data/doc/release_notes/0_20_0.md
CHANGED
data/lib/httpx/pool.rb
CHANGED
@@ -80,6 +80,9 @@ module HTTPX
|
|
80
80
|
connection.on(:activate) do
|
81
81
|
select_connection(connection)
|
82
82
|
end
|
83
|
+
connection.on(:close) do
|
84
|
+
unregister_connection(connection)
|
85
|
+
end
|
83
86
|
end
|
84
87
|
|
85
88
|
def deactivate(connections)
|
@@ -143,8 +146,6 @@ module HTTPX
|
|
143
146
|
|
144
147
|
def on_resolver_error(connection, error)
|
145
148
|
connection.emit(:error, error)
|
146
|
-
# must remove connection by hand, hasn't been started yet
|
147
|
-
unregister_connection(connection)
|
148
149
|
end
|
149
150
|
|
150
151
|
def on_resolver_close(resolver)
|
@@ -171,8 +172,7 @@ module HTTPX
|
|
171
172
|
|
172
173
|
def unregister_connection(connection)
|
173
174
|
@connections.delete(connection)
|
174
|
-
deselect_connection(connection)
|
175
|
-
@connected_connections -= 1
|
175
|
+
@connected_connections -= 1 if deselect_connection(connection)
|
176
176
|
end
|
177
177
|
|
178
178
|
def select_connection(connection)
|
data/lib/httpx/version.rb
CHANGED
data/sig/pool.rbs
CHANGED
@@ -36,9 +36,9 @@ module HTTPX
|
|
36
36
|
|
37
37
|
def unregister_connection: (Connection) -> void
|
38
38
|
|
39
|
-
def select_connection: (
|
39
|
+
def select_connection: (Selector::selectable) -> void
|
40
40
|
|
41
|
-
def deselect_connection: (
|
41
|
+
def deselect_connection: (Selector::selectable) -> Selector::selectable?
|
42
42
|
|
43
43
|
def coalesce_connections: (Connection coalescable, Connection coalescing) -> void
|
44
44
|
|
data/sig/selector.rbs
CHANGED
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.20.
|
4
|
+
version: 0.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -81,6 +81,7 @@ extra_rdoc_files:
|
|
81
81
|
- doc/release_notes/0_19_8.md
|
82
82
|
- doc/release_notes/0_1_0.md
|
83
83
|
- doc/release_notes/0_20_0.md
|
84
|
+
- doc/release_notes/0_20_1.md
|
84
85
|
- doc/release_notes/0_2_0.md
|
85
86
|
- doc/release_notes/0_2_1.md
|
86
87
|
- doc/release_notes/0_3_0.md
|
@@ -154,6 +155,7 @@ files:
|
|
154
155
|
- doc/release_notes/0_19_8.md
|
155
156
|
- doc/release_notes/0_1_0.md
|
156
157
|
- doc/release_notes/0_20_0.md
|
158
|
+
- doc/release_notes/0_20_1.md
|
157
159
|
- doc/release_notes/0_2_0.md
|
158
160
|
- doc/release_notes/0_2_1.md
|
159
161
|
- doc/release_notes/0_3_0.md
|