httpx 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/httpx/connection.rb +2 -2
- data/lib/httpx/connection/http2.rb +3 -1
- data/lib/httpx/headers.rb +1 -1
- data/lib/httpx/pool.rb +3 -0
- data/lib/httpx/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 473b3b919edef3fda28912548afc872fd45603dd805757bb19c58eb9d1fbf393
|
4
|
+
data.tar.gz: 554c4b0ebff6f6f9293230c940f9096dc4bfe7361a3f0ba0d6217e2d75bd13e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b393a0f4943af7fe478c45b9628f7a07bcfdaf3c59e743f893d21b76bee77100367851027ab597a39113f7c48d747eb2e994c0528a8697403ee8a3d8f6a9725
|
7
|
+
data.tar.gz: 6c3744eb31f1beba7f98a016c175d6b8d886093ad86eaa8920f3147b9df4d348c006f42689496bd93d67c304d44f5e7d2e1d47f71acc30fed9842fe263bb5886
|
data/lib/httpx/connection.rb
CHANGED
@@ -281,13 +281,13 @@ module HTTPX
|
|
281
281
|
return
|
282
282
|
end
|
283
283
|
|
284
|
-
log { "READ: #{siz} bytes..." }
|
285
|
-
|
286
284
|
if siz.zero?
|
287
285
|
read_drained = @read_buffer.empty?
|
288
286
|
break
|
289
287
|
end
|
290
288
|
|
289
|
+
log { "READ: #{siz} bytes..." }
|
290
|
+
|
291
291
|
parser << @read_buffer.to_s
|
292
292
|
|
293
293
|
break if @state == :closing || @state == :closed
|
@@ -36,7 +36,9 @@ module HTTPX
|
|
36
36
|
|
37
37
|
return :w if @connection.state == :closed
|
38
38
|
|
39
|
-
|
39
|
+
unless (@connection.state == :connected && @handshake_completed)
|
40
|
+
return @buffer.empty? ? :r : :rw
|
41
|
+
end
|
40
42
|
|
41
43
|
return :w unless @pending.empty?
|
42
44
|
|
data/lib/httpx/headers.rb
CHANGED
data/lib/httpx/pool.rb
CHANGED
data/lib/httpx/version.rb
CHANGED