async-http 0.63.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e698212af630193dd1634874e0d4581d0300ff16c26f6c6c686b1d9aea42bce1
4
- data.tar.gz: 6c5f5d6cd4280f8ff56687cc272489421580823e22d33cc8e819fc73f919fccb
3
+ metadata.gz: 5c40a57758ae5ea41adfa4340af200489f37a70725746e86f212ac130c3e3c56
4
+ data.tar.gz: '088337148f9ecc40f9bdc93d30618038a8e60ae9436d0f26d78246027c6b3937'
5
5
  SHA512:
6
- metadata.gz: 6d443af7f456b91720d22bd6951489869d85016f6a404f2228ed0489664de392820c303a3016893d92ac81fe3f9fd827224dfd8d31693d85a05ca0adb8947eb5
7
- data.tar.gz: d529d98b27b5093e91b45cc15992a7378f3749caa1942a8eb26afd01a42ac2c801c26c2c500850b48fe40b2ff1ce0c5c0300b408241941ff02add0b9b720e7e2
6
+ metadata.gz: 811b2e32cfc64991a89aff3ebe076f8c1e53c32dd8f4e2ffa8aa42b2413e23e673a74c7af8acc1e1b6bfee62a799950dd9ccfc0dcd7b6dd2691a675c1b9d837f
7
+ data.tar.gz: a119d79e491c25291553902d026396004f78be5716831a4ea3f38415cde3c37fa6812f32431e6120f5bcbb5f275a533cdf52557a049e5010f582c6909f81e0d1
checksums.yaml.gz.sig CHANGED
Binary file
@@ -55,7 +55,7 @@ module Async
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.0"
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.0
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-03-28 00:00:00.000000000 Z
58
58
  dependencies:
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: async
metadata.gz.sig CHANGED
Binary file