Skip to content

Commit

Permalink
Cowboy 2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed May 12, 2021
1 parent 136e74f commit 04ca4c5
Show file tree
Hide file tree
Showing 7 changed files with 413 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PROJECT = cowboy
PROJECT_DESCRIPTION = Small, fast, modern HTTP server.
PROJECT_VERSION = 2.8.0
PROJECT_VERSION = 2.9.0
PROJECT_REGISTERED = cowboy_clock

# Options.
Expand Down
2 changes: 2 additions & 0 deletions doc/src/guide/book.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion doc/src/guide/getting_started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
50 changes: 50 additions & 0 deletions doc/src/guide/migrating_from_2.8.asciidoc
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 2 additions & 0 deletions doc/src/manual/cowboy_http2.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ too many `WINDOW_UPDATE` frames.

== Changelog

* *2.9*: The `goaway_initial_timeout` and `goaway_complete_timeout`
options were added.
* *2.8*: The `active_n` option was added.
* *2.8*: The `linger_timeout` option was added.
* *2.8*: The `max_received_frame_rate` default value has
Expand Down
2 changes: 1 addition & 1 deletion ebin/cowboy.app
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, 'cowboy', [
{description, "Small, fast, modern HTTP server."},
{vsn, "2.8.0"},
{vsn, "2.9.0"},
{modules, ['cowboy','cowboy_app','cowboy_bstr','cowboy_children','cowboy_clear','cowboy_clock','cowboy_compress_h','cowboy_constraints','cowboy_handler','cowboy_http','cowboy_http2','cowboy_loop','cowboy_metrics_h','cowboy_middleware','cowboy_req','cowboy_rest','cowboy_router','cowboy_static','cowboy_stream','cowboy_stream_h','cowboy_sub_protocol','cowboy_sup','cowboy_tls','cowboy_tracer_h','cowboy_websocket']},
{registered, [cowboy_sup,cowboy_clock]},
{applications, [kernel,stdlib,crypto,cowlib,ranch]},
Expand Down
Loading

0 comments on commit 04ca4c5

Please sign in to comment.