0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Exit gracefully on parent exit/sys:terminate/2,3

This commit is contained in:
Loïc Hoguin 2018-10-28 10:20:43 +01:00
parent 21ff3ff256
commit d4129e6305
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
5 changed files with 11 additions and 17 deletions

View file

@ -386,7 +386,7 @@ reason() :: normal | switch_protocol
| {socket_error, closed | atom(), HumanReadable}
| {stream_error, Error, HumanReadable}
| {connection_error, Error, HumanReadable}
| {stop, cow_http2:frame(), HumanReadable}
| {stop, cow_http2:frame() | {exit, any()}, HumanReadable}
Error = atom()
HumanReadable = atom()
@ -420,6 +420,7 @@ tuple.
== Changelog
* *2.6*: The `{stop, {exit, any()}, HumanReadable}` terminate reason was added.
* *2.2*: The trailers command was introduced.
* *2.0*: Module introduced.