From 7d70e77d9f8dbddb14e41c5797787e00c9f613ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 1 Oct 2019 21:11:25 +0200 Subject: Don't filter HTTP/2 options It's not a big gain and causes issues when forgetting to update the list. Maybe it can be added back again at a later time. --- src/cow_http2_machine.erl | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/cow_http2_machine.erl b/src/cow_http2_machine.erl index 0779ffc..de2346d 100644 --- a/src/cow_http2_machine.erl +++ b/src/cow_http2_machine.erl @@ -191,7 +191,7 @@ init(client, Opts) -> NextSettings = settings_init(Opts), client_preface(#http2_machine{ mode=client, - opts=only_keep_relevant_opts(Opts), + opts=Opts, preface_timer=start_timer(preface_timeout, Opts), settings_timer=start_timer(settings_timeout, Opts), next_settings=NextSettings, @@ -201,22 +201,13 @@ init(server, Opts) -> NextSettings = settings_init(Opts), common_preface(#http2_machine{ mode=server, - opts=only_keep_relevant_opts(Opts), + opts=Opts, preface_timer=start_timer(preface_timeout, Opts), settings_timer=start_timer(settings_timeout, Opts), next_settings=NextSettings, local_streamid=2 }). -%% We remove the options that are part of SETTINGS or that are not known. -only_keep_relevant_opts(Opts) -> - maps:with([ - initial_connection_window_size, - max_encode_table_size, - max_frame_size_sent, - settings_timeout - ], Opts). - start_timer(Name, Opts) -> case maps:get(Name, Opts, 5000) of infinity -> undefined; -- cgit v1.2.3