async-http 0.62.0 → 0.64.0

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: 8dc4aa0996dc0764efca237242c38060aac6d376ec0909c201234513900ac63b
4
- data.tar.gz: 8686d58131784592733a4db72bf6ae9f808f6b6471f5fb2051ed9f081d08dc7c
3
+ metadata.gz: 5c40a57758ae5ea41adfa4340af200489f37a70725746e86f212ac130c3e3c56
4
+ data.tar.gz: '088337148f9ecc40f9bdc93d30618038a8e60ae9436d0f26d78246027c6b3937'
5
5
  SHA512:
6
- metadata.gz: f5e3b67a1a6233cdab82d41870c9fd642ebee81d4fcbb806c5097c090de552ad8d4e57b0cb432c51974772099582fbdbcf772af192baf2bb38709b3a6d6e59dc
7
- data.tar.gz: f5466292f40fd68e549d02f89c09988f47cf077008faf0c8c69f421aec2ce4245e2c5acc916b0b4e250bf7270408c0a9bed7be556f658ff5c7a92275b0ac1326
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:
@@ -9,24 +9,6 @@ require_relative 'http11'
9
9
 
10
10
  require_relative 'http2'
11
11
 
12
- require 'openssl'
13
-
14
- unless OpenSSL::SSL::SSLContext.instance_methods.include? :alpn_protocols=
15
- warn "OpenSSL implementation doesn't support ALPN."
16
-
17
- class OpenSSL::SSL::SSLContext
18
- def alpn_protocols= names
19
- return names
20
- end
21
- end
22
-
23
- class OpenSSL::SSL::SSLSocket
24
- def alpn_protocol
25
- return nil
26
- end
27
- end
28
- end
29
-
30
12
  module Async
31
13
  module HTTP
32
14
  module Protocol
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.62.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.62.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-22 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
@@ -104,42 +104,42 @@ dependencies:
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: 0.25.0
107
+ version: 0.26.0
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - "~>"
113
113
  - !ruby/object:Gem::Version
114
- version: 0.25.0
114
+ version: 0.26.0
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: protocol-http1
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - "~>"
120
120
  - !ruby/object:Gem::Version
121
- version: 0.16.0
121
+ version: 0.18.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.16.0
128
+ version: 0.18.0
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: protocol-http2
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - "~>"
134
134
  - !ruby/object:Gem::Version
135
- version: 0.15.0
135
+ version: 0.16.0
136
136
  type: :runtime
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - "~>"
141
141
  - !ruby/object:Gem::Version
142
- version: 0.15.0
142
+ version: 0.16.0
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: traces
145
145
  requirement: !ruby/object:Gem::Requirement
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  requirements: []
224
- rubygems_version: 3.4.22
224
+ rubygems_version: 3.5.3
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: A HTTP client and server library.
metadata.gz.sig CHANGED
Binary file