0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

Cowboy 2.9.0

This commit is contained in:
Loïc Hoguin 2021-05-12 10:24:40 +02:00
parent 136e74fc51
commit 04ca4c5d31
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
7 changed files with 413 additions and 11 deletions

View file

@ -75,6 +75,8 @@ include::performance.asciidoc[Performance]
= Additional information
include::migrating_from_2.8.asciidoc[Migrating from Cowboy 2.8 to 2.9]
include::migrating_from_2.7.asciidoc[Migrating from Cowboy 2.7 to 2.8]
include::migrating_from_2.6.asciidoc[Migrating from Cowboy 2.6 to 2.7]

View file

@ -69,7 +69,7 @@ fetch and compile Cowboy:
PROJECT = hello_erlang
DEPS = cowboy
dep_cowboy_commit = 2.8.0
dep_cowboy_commit = 2.9.0
DEP_PLUGINS = cowboy

View file

@ -0,0 +1,50 @@
[appendix]
== Migrating from Cowboy 2.8 to 2.9
Cowboy 2.9 implements graceful shutdown of connection
processes for both HTTP/1.1 and HTTP/2 connections.
Cowboy 2.9 is the first release to support the much
awaited Erlang/OTP 24 out of the box. While users that
were using Ranch 2.0 already were ready for OTP 24,
the Ranch version used by Cowboy out of the box was
not compatible and had to be updated.
Cowboy 2.9 also contains a small number of tweaks
and bug fixes.
Cowboy 2.9 requires Erlang/OTP 22.0 or greater.
=== Features added
* Cowboy will now gracefully shutdown HTTP/1.1 and HTTP/2
connections when the supervisor asks the connection
process to exit, or when `sys:terminate/2,3` is used.
Two new configuration options were added for HTTP/2
to determine the timeouts for the graceful shutdown
steps.
* REST handler `AcceptCallback` can now return `{created, URI}`
or `{see_other, URI}` to determine what response status code
should be sent (typically to differentiate between a new
resource and an update). The return value `{true, URI}` is
now deprecated.
* Update Ranch to 1.8.0.
* Update Cowlib to 2.11.0.
=== Bugs fixed
* Fix concurrent body streaming getting stuck with HTTP/2.
The alarm could get into blocking state indefinitely
when two or more request processes were streaming bodies.
* Fix HTTP/2 rate limiting using the wrong default values
in some cases.
* Don't produce an error report when the request process
exited normally (`normal` or `shutdown` exit reasons).
* Fix `cowboy_tracer_h` to support trace messages without
timestamps.