async-http 0.100.0 → 0.101.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: ee704ca93c1b809cfcd2ea2db7961066a10d433143f1144658a52c7674179110
4
- data.tar.gz: 268a538e9a234f51495990e39d8f5c9f7bb8d1a73db57da285e6cf180f3638e7
3
+ metadata.gz: 397ffac9d60c7ff7d3524624cffdfb5105a2cdc1e7a540cc8b282824b5bf890a
4
+ data.tar.gz: fd2cc4a962f28ddb8cb79f4035315816b9a7dd5785e76494b764764f3dd51ef6
5
5
  SHA512:
6
- metadata.gz: 9393381596b9b8f1c14cea1383577cb4037e60f74d4e0aa9f84862f38f906988645fc9153dc68cb933fe3932ea3b3e5abc92cae9429200d4ee1a17a90706b476
7
- data.tar.gz: 9bae0d3084ce01b65c9eeb208b97a525b176063c20473f554a1b18016b486e6a0813b974864c7bbdadaca22e1605932e1239e10c402bf38a9cfd16fb59744c2e
6
+ metadata.gz: 771358b08bcf8ceba72af908b5b5f3d78be7a3751a7051d6350132bb9e942809054da7b2b205169df6eb9e26a49a873743b187df9d0a7d49bc43166db9769519
7
+ data.tar.gz: 998d6fcc02cf5b56f5883d6c26cf3e4a5ca009e2fa1234037c9c2fe4ccabc6262c9b6ede32778a98aabf5e1fd1f9ed3cdae7c9f8613b96338df8bf84ebd36b0c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -161,6 +161,9 @@ module Async
161
161
  # Do not remove this line or you will unleash the gods of concurrency hell.
162
162
  task.yield
163
163
  end
164
+ rescue ::Protocol::HTTP::RemoteError => error
165
+ Console.debug(self, "Remote endpoint disconnected!", exception: error)
166
+ return
164
167
  rescue => error
165
168
  # We store error (as a local variable) for later use in the ensure block.
166
169
  raise
@@ -7,6 +7,6 @@
7
7
  module Async
8
8
  # @namespace
9
9
  module HTTP
10
- VERSION = "0.100.0"
10
+ VERSION = "0.101.0"
11
11
  end
12
12
  end
data/readme.md CHANGED
@@ -16,6 +16,10 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f
16
16
 
17
17
  Please see the [project releases](https://socketry.github.io/async-http/releases/index) for all releases.
18
18
 
19
+ ### v0.101.0
20
+
21
+ - Handle remote disconnects in `Async::HTTP::Protocol::HTTP1::Server#each` without reporting them as server failures.
22
+
19
23
  ### v0.100.0
20
24
 
21
25
  - Added transport-neutral TLS configuration support to `Async::HTTP::Endpoint`.
@@ -55,10 +59,6 @@ Please see the [project releases](https://socketry.github.io/async-http/releases
55
59
 
56
60
  - Fix response body leak in HTTP/2 server when stream is reset before `send_response` completes (e.g. client-side gRPC cancellation). The response body's `close` was never called, leaking any resources tied to body lifecycle (such as `rack.response_finished` callbacks and utilization metrics).
57
61
 
58
- ### v0.94.1
59
-
60
- - Fix `defer_stop` usage in `HTTP1::Server`, improving server graceful shutdown behavior.
61
-
62
62
  ## See Also
63
63
 
64
64
  - [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.101.0
4
+
5
+ - Handle remote disconnects in `Async::HTTP::Protocol::HTTP1::Server#each` without reporting them as server failures.
6
+
3
7
  ## v0.100.0
4
8
 
5
9
  - Added transport-neutral TLS configuration support to `Async::HTTP::Endpoint`.
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.100.0
4
+ version: 0.101.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -138,14 +138,14 @@ dependencies:
138
138
  requirements:
139
139
  - - "~>"
140
140
  - !ruby/object:Gem::Version
141
- version: '0.39'
141
+ version: '0.41'
142
142
  type: :runtime
143
143
  prerelease: false
144
144
  version_requirements: !ruby/object:Gem::Requirement
145
145
  requirements:
146
146
  - - "~>"
147
147
  - !ruby/object:Gem::Version
148
- version: '0.39'
148
+ version: '0.41'
149
149
  - !ruby/object:Gem::Dependency
150
150
  name: protocol-http2
151
151
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file