async-http 0.37.2 → 0.37.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +6 -0
- data/Rakefile +1 -1
- data/lib/async/http/body/deflate.rb +2 -1
- data/lib/async/http/body/inflate.rb +2 -1
- data/lib/async/http/body/wrapper.rb +4 -0
- data/lib/async/http/protocol/http2/stream.rb +3 -1
- data/lib/async/http/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56a31caa730c93d06b5a39bf8cc63854cbca765c95e31e695cf5c1b8d857fa39
|
4
|
+
data.tar.gz: 0db37799fe6cba5b48c21a03d07495eee884ef3794e8a780b7a894e9e4158856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fa80b157905d027133f010e822b18c20f11062dcde3ea16c0bf59047ad56c41cbd7f153c7f230617e07b7b9273e45f32c49951ea6223e36edc14ca1b1671751
|
7
|
+
data.tar.gz: '0390df8738ec66d930cf4214e3ad1b0cc36fbfda468c889c602c779beb513bef607557eda90decbf26bff7ca500d3282a777df29c698c897222d0dcdfb0a40be'
|
data/.editorconfig
ADDED
data/Rakefile
CHANGED
@@ -29,7 +29,7 @@ task :google do
|
|
29
29
|
framer = ::HTTP::Protocol::HTTP2::Framer.new(stream)
|
30
30
|
client = ::HTTP::Protocol::HTTP2::Client.new(framer)
|
31
31
|
|
32
|
-
client.send_connection_preface
|
32
|
+
client.send_connection_preface
|
33
33
|
|
34
34
|
stream = ::HTTP::Protocol::HTTP2::Stream.new(client)
|
35
35
|
|
@@ -90,6 +90,7 @@ module Async
|
|
90
90
|
def read
|
91
91
|
return if @stream.finished?
|
92
92
|
|
93
|
+
# The stream might have been closed while waiting for the chunk to come in.
|
93
94
|
if chunk = super
|
94
95
|
@input_length += chunk.bytesize
|
95
96
|
|
@@ -98,7 +99,7 @@ module Async
|
|
98
99
|
@output_length += chunk.bytesize
|
99
100
|
|
100
101
|
return chunk
|
101
|
-
|
102
|
+
elsif !@stream.closed?
|
102
103
|
chunk = @stream.finish
|
103
104
|
|
104
105
|
@output_length += chunk.bytesize
|
@@ -33,6 +33,7 @@ module Async
|
|
33
33
|
def read
|
34
34
|
return if @stream.finished?
|
35
35
|
|
36
|
+
# The stream might have been closed while waiting for the chunk to come in.
|
36
37
|
if chunk = super
|
37
38
|
@input_length += chunk.bytesize
|
38
39
|
|
@@ -40,7 +41,7 @@ module Async
|
|
40
41
|
chunk = @stream.inflate(chunk)
|
41
42
|
|
42
43
|
@output_length += chunk.bytesize
|
43
|
-
|
44
|
+
elsif !@stream.closed?
|
44
45
|
chunk = @stream.finish
|
45
46
|
|
46
47
|
@output_length += chunk.bytesize
|
@@ -41,7 +41,9 @@ module Async
|
|
41
41
|
|
42
42
|
def send_body(body, task: Async::Task.current)
|
43
43
|
# TODO Might need to stop this task when body is cancelled.
|
44
|
-
@task = task.async do
|
44
|
+
@task = task.async do |subtask|
|
45
|
+
subtask.annotate "Sending body: #{body.class}"
|
46
|
+
|
45
47
|
@body = body
|
46
48
|
|
47
49
|
window_updated
|
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.37.
|
4
|
+
version: 0.37.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -129,6 +129,7 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".editorconfig"
|
132
133
|
- ".gitignore"
|
133
134
|
- ".rspec"
|
134
135
|
- ".travis.yml"
|