Debian Codegraph @

doc/src/guide/migrating_from_2.3.asciidoc

raw
1 [appendix]
2 == Migrating from Cowboy 2.3 to 2.4
3
4 Cowboy 2.4 focused on improving the HTTP/2 implementation.
5 All existing tests from RFC7540 and the h2spec test suite
6 now all pass. Numerous options have been added to control
7 SETTINGS and related behavior. In addition experimental
8 support for Websocket over HTTP/2 was added.
9
10 === Features added
11
12 * Add experimental support for Websocket over HTTP/2.
13 You can use the `enable_connect_protocol` option to
14 enable. It implements the following draft:
15 https://tools.ietf.org/html/draft-ietf-httpbis-h2-websockets-01
16
17 * Add options `max_decode_table_size` and
18 `max_encode_table_size` to restrict the size of the
19 HPACK compression dictionary.
20
21 * Add option `max_concurrent_streams` to restrict the
22 number of HTTP/2 streams that can be opened concurrently.
23
24 * Add options `initial_connection_window_size` and
25 `initial_stream_window_size` to restrict the size of
26 the HTTP/2 request body buffers for the whole connection
27 and per stream, respectively.
28
29 * Add options `max_frame_size_received` and
30 `max_frame_size_sent` to restrict the size of
31 HTTP/2 frames.
32
33 * Add option `settings_timeout` to reject clients that
34 did not send a SETTINGS ack. Note that this currently
35 may only occur at the beginning of the connection.
36
37 * Update Ranch to 1.5.0
38
39 * Update Cowlib to 2.3.0
40
41 === Bugs fixed
42
43 * Fix the END_STREAM flag for informational responses
44 when using HTTP/2.
45
46 * Receive and ignore HTTP/2 request trailers if any
47 for HTTP/2 requests. Request trailer information will
48 be propagated to the user code in a future release.
49
50 * Reject WINDOW_UPDATE frames that are sent after the
51 client sent an RST_STREAM. Note that Cowboy will not
52 keep state information about terminated streams
53 forever and so the behavior might differ depending
54 on when the stream was reset.
55
56 * Reject streams that depend on themselves. Note that
57 Cowboy currently does not implement HTTP/2's priority
58 mechanisms so this issue was harmless.
59
60 * Reject HTTP/2 requests where the body size is different
61 than the content-length value. Note that due to how Cowboy
62 works some requests might go through regardless, for
63 example when the user code does not read the request body.
64
65 * Fix all existing test failures from RFC7540. This was
66 mostly incorrect test cases or intermittent failures.