async-http 0.36.2 → 0.36.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: c3adac1b64869f91d8f79ba9a891f857cc26e126b6e7131b47e1e47abff6c728
4
- data.tar.gz: 5a792738575a27a04731c8eca0969bd134eb62285d686823c1f09f0d3fd981d9
3
+ metadata.gz: c623b2b96c4332233d21cdd8c2f1f663543b2df31187b31c3dc224072e78d5c7
4
+ data.tar.gz: 17cbbdb849ca0d071fbb69ffd04bb646bb5e3c2d6abfda8a80af42c8c188b0a8
5
5
  SHA512:
6
- metadata.gz: ec21ed9671b4e928330f04a820a14b1be60962d84f2dd4626412e77668771128f227ef184b1b9dff0104d34dde2e833137117f0ee6f777bf89b89d24981b8a36
7
- data.tar.gz: 9e0c128e78b579298995acace2d212fe237142917b3b9aedae23a2d68a9771554f3315551c9c5b724ef1de2176c4fd6f2d1c356629ddc3861a7f2da3688ca368
6
+ metadata.gz: 6ff8d9aa99750b1785dd87f727abfa5dcd42e0167386617d4a28d9ff58ad6f824c49cc55f659fc57051e2bb1062e389e8ef15e3aa7e67301db9129702a7ea486
7
+ data.tar.gz: c21defad1a7ed2cd6382ee63554fe53c50f94ef9e9f1e2e356318cb55d4df5d30c2b0cc27f53f1931a65a493d1dd3f8472bc6ad88c34c1d9c630663a06279c81
@@ -88,7 +88,7 @@ module Async
88
88
  end
89
89
 
90
90
  def read
91
- return if @stream.closed?
91
+ return if @stream.finished?
92
92
 
93
93
  if chunk = super
94
94
  @input_length += chunk.bytesize
@@ -103,8 +103,6 @@ module Async
103
103
 
104
104
  @output_length += chunk.bytesize
105
105
 
106
- @stream.close
107
-
108
106
  return chunk.empty? ? nil : chunk
109
107
  end
110
108
  end
@@ -31,7 +31,7 @@ module Async
31
31
  end
32
32
 
33
33
  def read
34
- return if @stream.closed?
34
+ return if @stream.finished?
35
35
 
36
36
  if chunk = super
37
37
  @input_length += chunk.bytesize
@@ -44,11 +44,9 @@ module Async
44
44
  chunk = @stream.finish
45
45
 
46
46
  @output_length += chunk.bytesize
47
-
48
- @stream.close
49
47
  end
50
48
 
51
- if @stream.finished? and chunk.empty?
49
+ if chunk.empty? and @stream.finished?
52
50
  return nil
53
51
  end
54
52
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.36.2"
23
+ VERSION = "0.36.3"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.2
4
+ version: 0.36.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams