Skip to content

Commit cd2be06

Browse files
authored
Merge pull request #851 from benoitc/chore/bump-h2-0.6.0
deps: bump h2 to 0.6.0
2 parents 3bdcc9c + bff9aed commit cd2be06

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
%% Pure Erlang QUIC + HTTP/3 stack
5252
{quic, "1.0.0"},
5353
%% Pure Erlang HTTP/2 stack
54-
{h2, "0.4.0"},
54+
{h2, "0.6.0"},
5555
{idna, "~>7.1.0"},
5656
{mimerl, "~>1.4"},
5757
{certifi, "~>2.16.0"},

test/hackney_http2_concurrency_tests.erl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ run_concurrent_tight_loop() ->
3030
ok = h2:send_data(Conn, Sid, <<"ok">>, true)
3131
end,
3232
Certs = cert_dir(),
33+
%% h2 0.6.0 defaults SETTINGS_MAX_CONCURRENT_STREAMS to 100 (RFC 9113
34+
%% §5.1.2 floor); this tight-loop test multiplexes more than that and
35+
%% would otherwise hit {error, max_streams_exceeded}.
3336
{ok, Server} = h2:start_server(0, #{
3437
cert => filename:join(Certs, "server.pem"),
3538
key => filename:join(Certs, "server.key"),
36-
handler => Handler
39+
handler => Handler,
40+
settings => #{max_concurrent_streams => unlimited}
3741
}),
3842
Port = h2:server_port(Server),
3943
Pool = hackney_h2_concurrency_pool,

0 commit comments

Comments
 (0)