async-http 0.58.0 → 0.59.2

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: 238edc4ed5e4244f2060e9c788aa93588f9b3dd920646c8ec9161512af381e96
4
- data.tar.gz: c77506488fedd3fec5a20d1172f1a2e6e6285f2c0dccb6a447a217a2e3423bc0
3
+ metadata.gz: d7c4b7f8203887b767aacfcdd3d8f6bb4840d4a7905095c8fdc013c6692fba18
4
+ data.tar.gz: 41d11eaa64f5915722bc1a33befaa52e0df3c4b30e25dc8167ed98d9c79e3d06
5
5
  SHA512:
6
- metadata.gz: 87247dfbc7b31ead28e1fef6f6b532a6db22778eb3c0bde7932cdf6655027309ef1f0f1453b8a72d4ff38aabe3aeb9d8c7c75af28f8d35285bf6644f23655e99
7
- data.tar.gz: bc199930224287caaea2c2b2c9b7219d81d24872932efa0a85b7bcada7d7c56b8f1da827ce34742db7bfc7193a72148a233cef09a65892d36949c5200f288e0a
6
+ metadata.gz: 239d3d5677cefb80937883482460f04b5069c60b46d87e9b5e5fe2fc0f0e9391ede1590f89d2a5801f94b703c2678900dcb53cbfdbd780185130500827f212f2
7
+ data.tar.gz: 2f6663a734a403f3c4a6f0ddaf9067586a52dde4f63715ce823162c28c89860ae62ff29b53248a20fa5d617c3f572a00a9c39738d3eb843b3beab6521e45e7cd
checksums.yaml.gz.sig CHANGED
Binary file
@@ -61,7 +61,12 @@ module Async
61
61
  while request = next_request
62
62
  response = yield(request, self)
63
63
  body = response&.body
64
-
64
+
65
+ if @stream.nil? and body.nil?
66
+ # Full hijack.
67
+ return
68
+ end
69
+
65
70
  begin
66
71
  # If a response was generated, send it:
67
72
  if response
@@ -110,6 +115,7 @@ module Async
110
115
  # This ensures we yield at least once every iteration of the loop and allow other fibers to execute.
111
116
  task.yield
112
117
  rescue => error
118
+ raise
113
119
  ensure
114
120
  body&.close(error)
115
121
  end
@@ -27,7 +27,7 @@ module Async
27
27
  module HTTP
28
28
  module Protocol
29
29
  module HTTP2
30
- VERSION = "h2"
30
+ VERSION = "HTTP/2"
31
31
 
32
32
  def self.bidirectional?
33
33
  true
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module HTTP
25
- VERSION = "0.58.0"
25
+ VERSION = "0.59.2"
26
26
  end
27
27
  end
data.tar.gz.sig CHANGED
Binary file
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.58.0
4
+ version: 0.59.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -52,7 +52,7 @@ cert_chain:
52
52
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
53
53
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
54
54
  -----END CERTIFICATE-----
55
- date: 2022-08-13 00:00:00.000000000 Z
55
+ date: 2022-08-26 00:00:00.000000000 Z
56
56
  dependencies:
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: async
metadata.gz.sig CHANGED
Binary file