summaryrefslogtreecommitdiffstats
path: root/docs/en/cowboy/2.10/guide/migrating_from_2.8.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-04-28 13:34:22 +0200
committerLoïc Hoguin <[email protected]>2023-04-28 13:34:22 +0200
commitd7580dbfdbdcf3ecf085479b6550284a47745138 (patch)
tree18ba5b3283ad3dc9d9f41898401b103a81641c04 /docs/en/cowboy/2.10/guide/migrating_from_2.8.asciidoc
parentc150ffb220c15f10076b86fb2776a782a4d098ae (diff)
downloadninenines.eu-d7580dbfdbdcf3ecf085479b6550284a47745138.tar.gz
ninenines.eu-d7580dbfdbdcf3ecf085479b6550284a47745138.tar.bz2
ninenines.eu-d7580dbfdbdcf3ecf085479b6550284a47745138.zip
Cowboy 2.10.0
Diffstat (limited to 'docs/en/cowboy/2.10/guide/migrating_from_2.8.asciidoc')
-rw-r--r--docs/en/cowboy/2.10/guide/migrating_from_2.8.asciidoc50
1 files changed, 50 insertions, 0 deletions
diff --git a/docs/en/cowboy/2.10/guide/migrating_from_2.8.asciidoc b/docs/en/cowboy/2.10/guide/migrating_from_2.8.asciidoc
new file mode 100644
index 00000000..a3a0e7c2
--- /dev/null
+++ b/docs/en/cowboy/2.10/guide/migrating_from_2.8.asciidoc
@@ -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.