Cowboy 2.4 focused on improving the HTTP/2 implementation. All existing tests from RFC7540 and the h2spec test suite now all pass. Numerous options have been added to control SETTINGS and related behavior. In addition experimental support for Websocket over HTTP/2 was added.
enable_connect_protocol option to enable. It implements the following draft: https://tools.ietf.org/html/draft-ietf-httpbis-h2-websockets-01
max_decode_table_size and max_encode_table_size to restrict the size of the HPACK compression dictionary.
max_concurrent_streams to restrict the number of HTTP/2 streams that can be opened concurrently.
initial_connection_window_size and initial_stream_window_size to restrict the size of the HTTP/2 request body buffers for the whole connection and per stream, respectively.
max_frame_size_received and max_frame_size_sent to restrict the size of HTTP/2 frames.
settings_timeout to reject clients that did not send a SETTINGS ack. Note that this currently may only occur at the beginning of the connection.
Support my work on Cowboy, Ranch, Gun and Erlang.mk via GitHub Sponsors. The funds cover domain names and development tools.