From 8ce026e1c541d1cdf870bfc98b17e12861c0ce65 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sun, 1 Dec 2024 21:04:25 +1300 Subject: [PATCH] Add support for `Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES`. --- async-http.gemspec | 2 +- lib/async/http/protocol/http2.rb | 2 ++ releases.md | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/async-http.gemspec b/async-http.gemspec index e498ba0..5aeb9fd 100644 --- a/async-http.gemspec +++ b/async-http.gemspec @@ -30,7 +30,7 @@ Gem::Specification.new do |spec| spec.add_dependency "io-stream", "~> 0.6" spec.add_dependency "protocol-http", "~> 0.43" spec.add_dependency "protocol-http1", ">= 0.28.1" - spec.add_dependency "protocol-http2", "~> 0.21" + spec.add_dependency "protocol-http2", "~> 0.22" spec.add_dependency "traces", "~> 0.10" spec.add_dependency "metrics", "~> 0.12" end diff --git a/lib/async/http/protocol/http2.rb b/lib/async/http/protocol/http2.rb index 3222f00..e7a5420 100644 --- a/lib/async/http/protocol/http2.rb +++ b/lib/async/http/protocol/http2.rb @@ -27,6 +27,7 @@ def self.trailer? ::Protocol::HTTP2::Settings::ENABLE_PUSH => 0, ::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000, ::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000, + ::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1, } SERVER_SETTINGS = { @@ -35,6 +36,7 @@ def self.trailer? ::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000, ::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000, ::Protocol::HTTP2::Settings::ENABLE_CONNECT_PROTOCOL => 1, + ::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1, } def self.client(peer, settings = CLIENT_SETTINGS) diff --git a/releases.md b/releases.md index 63286fc..54346ff 100644 --- a/releases.md +++ b/releases.md @@ -1,5 +1,9 @@ # Releases +## Unreleased + + - Add support for HTTP/2 `NO_RFC7540_PRIORITIES`. See for more details. + ## v0.84.0 - Minor consistency fixes to `Async::HTTP::Internet` singleton methods.