protocol-http2 0.27.0 → 0.28.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http2/stream.rb +7 -8
- data/lib/protocol/http2/version.rb +1 -1
- data/readme.md +4 -4
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b123bcf0056d6c21b757beb154bd0e20b099175880fa563f55cb5793c91c0013
|
|
4
|
+
data.tar.gz: 42721396177fccec6c4ec2201e927b6de774d7ef604dabf9652c68c84ea6b8b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22c8475249a63cc3b4276ac867b6034379f15f10795204d81b1e79de46cb2e1d431a9766537eca67766ca3e88703fc82f8ff38774486d04ee0d4999e8a0e801d
|
|
7
|
+
data.tar.gz: fb451afbc0ef6c216601c18221ed0bfd107fa4262597bf7d3a8188293ae2f475e5f312641a91abbdacb79617837667b769efe1c5cc198f08234506d48cdcf74d
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -239,22 +239,21 @@ module Protocol
|
|
|
239
239
|
return self
|
|
240
240
|
end
|
|
241
241
|
|
|
242
|
-
# The stream has been closed. If closed due to a stream reset, the error will be set.
|
|
242
|
+
# The stream has been closed. If closed due to a stream reset with a non-zero error code, the error will be set.
|
|
243
243
|
def closed(error = nil)
|
|
244
244
|
end
|
|
245
245
|
|
|
246
246
|
# Transition the stream into the closed state.
|
|
247
|
-
# @parameter error_code [Integer]
|
|
247
|
+
# @parameter error_code [Integer | Nil] The error code if the stream was closed due to a stream reset.
|
|
248
248
|
def close!(error_code = nil)
|
|
249
249
|
@state = :closed
|
|
250
250
|
@connection.delete(@id)
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
end
|
|
252
|
+
# `NO_ERROR` represents an orderly stream closure, so it is passed to `closed` as `nil` rather than converted to an exception.
|
|
253
|
+
if error_code == REFUSED_STREAM
|
|
254
|
+
error = ::Protocol::HTTP::RefusedError.new("Stream refused.")
|
|
255
|
+
elsif error_code && error_code != NO_ERROR
|
|
256
|
+
error = StreamError.for(error_code)
|
|
258
257
|
end
|
|
259
258
|
|
|
260
259
|
self.closed(error)
|
data/readme.md
CHANGED
|
@@ -14,6 +14,10 @@ Please see the [project documentation](https://socketry.github.io/protocol-http2
|
|
|
14
14
|
|
|
15
15
|
Please see the [project releases](https://socketry.github.io/protocol-http2/releases/index) for all releases.
|
|
16
16
|
|
|
17
|
+
### v0.28.0
|
|
18
|
+
|
|
19
|
+
- Treat `RST_STREAM(NO_ERROR)` as an orderly stream closure rather than constructing a `StreamError`.
|
|
20
|
+
|
|
17
21
|
### v0.27.0
|
|
18
22
|
|
|
19
23
|
- On a graceful `GOAWAY` (error code `0`), keep the connection open until the streams the remote peer accepted have completed, instead of closing it immediately and failing those requests with `EOFError`.
|
|
@@ -53,10 +57,6 @@ Please see the [project releases](https://socketry.github.io/protocol-http2/rele
|
|
|
53
57
|
|
|
54
58
|
- [Added Priority Update Frame and Stream Priority](https://socketry.github.io/protocol-http2/releases/index#added-priority-update-frame-and-stream-priority)
|
|
55
59
|
|
|
56
|
-
### v0.21.0
|
|
57
|
-
|
|
58
|
-
- **Breaking**: Removed support for priority frame and stream dependencies. The `Protocol::HTTP2::Stream` class no longer tracks dependencies, and `Stream#send_headers` no longer takes `priority` as the first argument. This change simplifies the internal implementation significantly as HTTP/2 priority frames have been deprecated in the protocol specification.
|
|
59
|
-
|
|
60
60
|
## See Also
|
|
61
61
|
|
|
62
62
|
- [Async::HTTP](https://github.com/socketry/async-http) - A high-level HTTP client and server implementation.
|
data/releases.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## v0.28.0
|
|
4
|
+
|
|
5
|
+
- Treat `RST_STREAM(NO_ERROR)` as an orderly stream closure rather than constructing a `StreamError`.
|
|
6
|
+
|
|
3
7
|
## v0.27.0
|
|
4
8
|
|
|
5
9
|
- On a graceful `GOAWAY` (error code `0`), keep the connection open until the streams the remote peer accepted have completed, instead of closing it immediately and failing those requests with `EOFError`.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
t
|
|
2
|
-
|
|
1
|
+
�G$٣@��5�'�7����It/�ua*�(I@1����+O�G+t)� 5�6v7�G�Z�k���������Cƽ�<ĸ��N�}q&�T2-Z�Ɲ�ě�)M�f�T�LlŲ�X�M��.Ү�A�M�#Ke��3�ʈ�@x�K�0���0�{FF.�R�T�����Ss�Ue���o� �F���{�=k|���e�/h��e�1UI�=� �G���a��J��7�t����-�Xnc ��"�����u�8�ic %FA~,��I�.�"au�̝�q�J����p
|
|
2
|
+
��7���-\�kw%�8o�N�K�Z���=)DnӧlcHW[_��W|a��a�
|