aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_stream.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-10-22 14:53:04 +0100
committerLoïc Hoguin <[email protected]>2017-10-22 14:53:04 +0100
commit4bebe39975aab28962ac3850aa25a7d768c349bb (patch)
treea805886c2c37ed3c8827cb1572c194a8eba163cb /src/cowboy_stream.erl
parentdebaecd49ae3efab4c319f3ec67677c82fe9e9a5 (diff)
downloadcowboy-4bebe39975aab28962ac3850aa25a7d768c349bb.tar.gz
cowboy-4bebe39975aab28962ac3850aa25a7d768c349bb.tar.bz2
cowboy-4bebe39975aab28962ac3850aa25a7d768c349bb.zip
Ensure stream terminate is called when switching protocols
Diffstat (limited to 'src/cowboy_stream.erl')
-rw-r--r--src/cowboy_stream.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_stream.erl b/src/cowboy_stream.erl
index f360a08..a44d3ae 100644
--- a/src/cowboy_stream.erl
+++ b/src/cowboy_stream.erl
@@ -42,7 +42,7 @@
| stop].
-export_type([commands/0]).
--type reason() :: normal
+-type reason() :: normal | switch_protocol
| {internal_error, timeout | {error | exit | throw, any()}, human_reason()}
| {socket_error, closed | atom(), human_reason()}
| {stream_error, cow_http2:error(), human_reason()}