aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-12 16:16:29 +0200
committerLoïc Hoguin <[email protected]>2018-09-12 16:16:29 +0200
commitb56a5a1d60715ae115723c11c27ff7e032a3c4a5 (patch)
tree5997c621337049429f2197918319f9d6316565a1 /doc
parent26bc4afad430c81f987597f409822452a8348657 (diff)
downloadcowboy-b56a5a1d60715ae115723c11c27ff7e032a3c4a5.tar.gz
cowboy-b56a5a1d60715ae115723c11c27ff7e032a3c4a5.tar.bz2
cowboy-b56a5a1d60715ae115723c11c27ff7e032a3c4a5.zip
Do not send a 101 after a final response in switch_protocol
Diffstat (limited to 'doc')
-rw-r--r--doc/src/guide/migrating_from_2.4.asciidoc5
-rw-r--r--doc/src/manual/cowboy_stream.asciidoc3
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/guide/migrating_from_2.4.asciidoc b/doc/src/guide/migrating_from_2.4.asciidoc
index 4ffb5b9..edf7d5b 100644
--- a/doc/src/guide/migrating_from_2.4.asciidoc
+++ b/doc/src/guide/migrating_from_2.4.asciidoc
@@ -81,6 +81,11 @@ also been worked on.
* Improve the validation of HTTP/1.1 absolute-form requests.
+* When the `switch_protocol` is used after a response was
+ sent, Cowboy will no longer attempt to send the 101 informational
+ response for the protocol upgrade. This caused a crash of the
+ connection previously.
+
* Errors that occur when a callback returned by
`content_types_provided` does not exist have been improved.
diff --git a/doc/src/manual/cowboy_stream.asciidoc b/doc/src/manual/cowboy_stream.asciidoc
index 763cbd5..4e6e34a 100644
--- a/doc/src/manual/cowboy_stream.asciidoc
+++ b/doc/src/manual/cowboy_stream.asciidoc
@@ -205,6 +205,9 @@ Contains the headers that will be sent in the 101 response,
along with the module implementing the protocol we are
switching to and its initial state.
+Note that the 101 informational response will not be sent
+after a final response.
+
=== stop
Stop the stream.