aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_stream.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-10-28 10:20:43 +0100
committerLoïc Hoguin <[email protected]>2018-10-28 10:20:43 +0100
commitd4129e63051efb29d7955e7913571671471090a5 (patch)
tree0d881b7cb300ac4c51777ee9623834c8d5007e84 /src/cowboy_stream.erl
parent21ff3ff256acc6c56e2ab35bb9712ea7b8ef6687 (diff)
downloadcowboy-d4129e63051efb29d7955e7913571671471090a5.tar.gz
cowboy-d4129e63051efb29d7955e7913571671471090a5.tar.bz2
cowboy-d4129e63051efb29d7955e7913571671471090a5.zip
Exit gracefully on parent exit/sys:terminate/2,3
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 b0b570e..92f66ba 100644
--- a/src/cowboy_stream.erl
+++ b/src/cowboy_stream.erl
@@ -50,7 +50,7 @@
| {socket_error, closed | atom(), human_reason()}
| {stream_error, cow_http2:error(), human_reason()}
| {connection_error, cow_http2:error(), human_reason()}
- | {stop, cow_http2:frame(), human_reason()}.
+ | {stop, cow_http2:frame() | {exit, any()}, human_reason()}.
-export_type([reason/0]).
-type partial_req() :: map(). %% @todo Take what's in cowboy_req with everything? optional.