0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix h2spec "invalid preface sequence" test

Introduce a currently undocumented option to allow disabling
cowboy_http when using a clear listener.
This commit is contained in:
Loïc Hoguin 2020-04-01 18:02:59 +02:00
parent bcef70818b
commit a8a2689727
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 12 additions and 1 deletions

View file

@ -36,6 +36,8 @@ init_per_suite(Config) ->
cowboy_test:init_http(h2spec, #{
env => #{dispatch => init_dispatch()},
max_concurrent_streams => 100,
%% This test suite expects an HTTP/2-only connection.
protocols => [http2],
%% Disable the DATA threshold for this test suite.
stream_window_data_threshold => 0
}, Config)