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.
sys:terminate/2,3
is used.
Two new configuration options were added for HTTP/2
to determine the timeouts for the graceful shutdown
steps.
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.
normal
or shutdown
exit reasons).
cowboy_tracer_h
to support trace messages without
timestamps.