aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-04-29 20:30:49 +0200
committerLoïc Hoguin <[email protected]>2018-04-29 20:30:49 +0200
commit011982368a21b24d17e39b1edff683f8b49866b2 (patch)
treee0105c7141cdd3ca86a5f4e4b0ce9df5fb5e905f
parentb3cafd4fb5520bdc2018f4b5f9c94bb47cd69485 (diff)
downloadcowlib-011982368a21b24d17e39b1edff683f8b49866b2.tar.gz
cowlib-011982368a21b24d17e39b1edff683f8b49866b2.tar.bz2
cowlib-011982368a21b24d17e39b1edff683f8b49866b2.zip
Accept infinity for some HTTP/2 SETTINGS
max_concurrent_streams and max_header_list_size to be precise.
-rw-r--r--src/cow_http2.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cow_http2.erl b/src/cow_http2.erl
index 7f2d75b..e3f5537 100644
--- a/src/cow_http2.erl
+++ b/src/cow_http2.erl
@@ -391,9 +391,11 @@ settings_payload(Settings) ->
header_table_size -> <<1:16, Value:32>>;
enable_push when Value -> <<2:16, 1:32>>;
enable_push -> <<2:16, 0:32>>;
+ max_concurrent_streams when Value =:= infinity -> <<>>;
max_concurrent_streams -> <<3:16, Value:32>>;
initial_window_size -> <<4:16, Value:32>>;
max_frame_size -> <<5:16, Value:32>>;
+ max_header_list_size when Value =:= infinity -> <<>>;
max_header_list_size -> <<6:16, Value:32>>;
enable_connect_protocol when Value -> <<8:16, 1:32>>;
enable_connect_protocol -> <<8:16, 0:32>>