Skip to content

Commit

Permalink
Update Cowlib to 2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Mar 14, 2024
1 parent ffde925 commit f0c19d6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CT_OPTS += -ct_hooks gun_ct_hook [] # -boot start_sasl
LOCAL_DEPS = ssl

DEPS = cowlib
dep_cowlib = git https://github.com/ninenines/cowlib 2.12.1
dep_cowlib = git https://github.com/ninenines/cowlib 2.13.0

DOC_DEPS = asciideck

Expand Down
4 changes: 3 additions & 1 deletion doc/src/manual/gun.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,13 @@ http2_opts() :: #{
max_connection_window_size => 0..16#7fffffff,
max_decode_table_size => non_neg_integer(),
max_encode_table_size => non_neg_integer(),
max_fragmented_header_block_size => 16384..16#7fffffff,
max_frame_size_received => 16384..16777215,
max_frame_size_sent => 16384..16777215 | infinity,
max_stream_buffer_size => non_neg_integer(),
max_stream_window_size => 0..16#7fffffff,
preface_timeout => timeout(),
settings_timeout => timeout(),
stream_window_data_threshold => 0..16#7fffffff,
stream_window_margin_size => 0..16#7fffffff,
stream_window_update_threshold => 0..16#7fffffff
}
Expand Down Expand Up @@ -597,6 +598,7 @@ By default no user option is defined.

== Changelog

* *2.1*: The HTTP/2 option list was updated with new options.
* *2.0*: The `default_protocol` and `user_opts` Websocket
options were added.
* *2.0*: The `stream_ref()` type was added.
Expand Down
1 change: 1 addition & 0 deletions ebin/gun.app
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{modules, ['gun','gun_app','gun_conns_sup','gun_content_handler','gun_cookies','gun_cookies_list','gun_data_h','gun_default_event_h','gun_event','gun_http','gun_http2','gun_pool','gun_pool_events_h','gun_pools_sup','gun_protocols','gun_public_suffix','gun_raw','gun_socks','gun_sse_h','gun_sup','gun_tcp','gun_tcp_proxy','gun_tls','gun_tls_proxy','gun_tls_proxy_cb','gun_tls_proxy_http2_connect','gun_tunnel','gun_ws','gun_ws_h','gun_ws_protocol']},
{registered, [gun_sup]},
{applications, [kernel,stdlib,ssl,cowlib]},
{optional_applications, []},
{mod, {gun_app, []}},
{env, []}
]}.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{deps, [
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.12.1"}}
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.13.0"}}
]}.
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard]}.
3 changes: 2 additions & 1 deletion src/gun.erl
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,13 @@
max_concurrent_streams => non_neg_integer() | infinity,
max_decode_table_size => non_neg_integer(),
max_encode_table_size => non_neg_integer(),
max_fragmented_header_block_size => 16384..16#7fffffff,
max_frame_size_received => 16384..16777215,
max_frame_size_sent => 16384..16777215 | infinity,
max_stream_buffer_size => non_neg_integer(),
max_stream_window_size => 0..16#7fffffff,
preface_timeout => timeout(),
settings_timeout => timeout(),
stream_window_data_threshold => 0..16#7fffffff,
stream_window_margin_size => 0..16#7fffffff,
stream_window_update_threshold => 0..16#7fffffff,

Expand Down
2 changes: 2 additions & 0 deletions src/gun_http2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@ do_check_options([Opt={Name, _}|Opts]) ->
max_concurrent_streams,
max_decode_table_size,
max_encode_table_size,
max_fragmented_header_block_size,
max_frame_size_received,
max_frame_size_sent,
max_stream_window_size,
preface_timeout,
settings_timeout,
stream_window_data_threshold,
stream_window_margin_size,
stream_window_update_threshold
],
Expand Down

0 comments on commit f0c19d6

Please sign in to comment.