diff options
author | Loïc Hoguin <[email protected]> | 2015-08-20 16:05:50 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-08-20 16:05:50 +0200 |
commit | ee1f82782835096208059ea14d52bf2cc0283323 (patch) | |
tree | 66d0dd5f157b088027a74c546a7f480bd974ae29 /test/crash_protocol.erl | |
parent | c867ec582d445b251ff659ba23f522b5278d5119 (diff) | |
download | ranch-ee1f82782835096208059ea14d52bf2cc0283323.tar.gz ranch-ee1f82782835096208059ea14d52bf2cc0283323.tar.bz2 ranch-ee1f82782835096208059ea14d52bf2cc0283323.zip |
Ensure ranch_conns_sup doesn't crash on protocol start crash
Diffstat (limited to 'test/crash_protocol.erl')
-rw-r--r-- | test/crash_protocol.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/crash_protocol.erl b/test/crash_protocol.erl new file mode 100644 index 0000000..e584f4d --- /dev/null +++ b/test/crash_protocol.erl @@ -0,0 +1,7 @@ +-module(crash_protocol). + +-export([start_link/4]). + +-spec start_link(_, _, _, _) -> no_return(). +start_link(_, _, _, _) -> + exit(crash). |