async-http 0.63.0 → 0.64.1

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: e698212af630193dd1634874e0d4581d0300ff16c26f6c6c686b1d9aea42bce1
4
- data.tar.gz: 6c5f5d6cd4280f8ff56687cc272489421580823e22d33cc8e819fc73f919fccb
3
+ metadata.gz: 579710906e91192d6f91923c7f4d07e2cba0bf55894d8c2629220352cf0638b2
4
+ data.tar.gz: ba3841e0a78ec46be5c0deea52584b7944c86d490591871840992c741959fb94
5
5
  SHA512:
6
- metadata.gz: 6d443af7f456b91720d22bd6951489869d85016f6a404f2228ed0489664de392820c303a3016893d92ac81fe3f9fd827224dfd8d31693d85a05ca0adb8947eb5
7
- data.tar.gz: d529d98b27b5093e91b45cc15992a7378f3749caa1942a8eb26afd01a42ac2c801c26c2c500850b48fe40b2ff1ce0c5c0300b408241941ff02add0b9b720e7e2
6
+ metadata.gz: 27d016c44e59e5b40e843b46e80bb90b3a5a4f9de9e876c63600a951abf6787260c5e8e702a7ec559cf4d34f1b4cbaf26ed506e65cfc010b32f63f179662519f
7
+ data.tar.gz: 8f3ac574e9239cbd92742823ed1adb93a09189b0cdc70299d7162be9c44338c69691c8efdecabaeba7d1f8c697c6d11e1a7201824a758f262004d985fd1a658a
checksums.yaml.gz.sig CHANGED
Binary file
@@ -50,12 +50,12 @@ module Async
50
50
  response = yield(request, self)
51
51
  body = response&.body
52
52
 
53
- if @stream.nil? and body.nil?
54
- # Full hijack.
53
+ if hijacked?
54
+ body&.close
55
55
  return
56
56
  end
57
57
 
58
- begin
58
+ task.defer_stop do
59
59
  # If a response was generated, send it:
60
60
  if response
61
61
  trailer = response.headers.trailer!
@@ -89,6 +89,7 @@ module Async
89
89
 
90
90
  task.annotate("#{version} reading data for #{self.class}.")
91
91
 
92
+ # We don't need to defer stop here as this is already a transient task (ignores stop):
92
93
  begin
93
94
  while !self.closed?
94
95
  self.consume_window
@@ -53,7 +53,7 @@ module Async
53
53
 
54
54
  @count += 1
55
55
 
56
- begin
56
+ task.defer_stop do
57
57
  response = yield(request)
58
58
  rescue
59
59
  # We need to close the stream if the user code blows up while generating a response:
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.63.0"
8
+ VERSION = "0.64.1"
9
9
  end
10
10
  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.63.0
4
+ version: 0.64.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -54,7 +54,7 @@ cert_chain:
54
54
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
55
55
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
56
56
  -----END CERTIFICATE-----
57
- date: 2024-01-26 00:00:00.000000000 Z
57
+ date: 2024-04-07 00:00:00.000000000 Z
58
58
  dependencies:
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: async
@@ -118,14 +118,14 @@ dependencies:
118
118
  requirements:
119
119
  - - "~>"
120
120
  - !ruby/object:Gem::Version
121
- version: 0.18.0
121
+ version: 0.19.0
122
122
  type: :runtime
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - "~>"
127
127
  - !ruby/object:Gem::Version
128
- version: 0.18.0
128
+ version: 0.19.0
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: protocol-http2
131
131
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file