diff options
author | Loïc Hoguin <[email protected]> | 2018-03-23 18:33:16 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-03-23 18:33:16 +0100 |
commit | 4d5174632cc1feac541697b18e6fbbdd0eed021b (patch) | |
tree | 6262f9c1631130b1631892fe9f3d458a71de0684 /test/handlers/long_polling_sys_h.erl | |
parent | 21c9c669719b864f6cc091125bc766183b43bd87 (diff) | |
download | cowboy-4d5174632cc1feac541697b18e6fbbdd0eed021b.tar.gz cowboy-4d5174632cc1feac541697b18e6fbbdd0eed021b.tar.bz2 cowboy-4d5174632cc1feac541697b18e6fbbdd0eed021b.zip |
Add initial support for system messages in cowboy_loop
Diffstat (limited to 'test/handlers/long_polling_sys_h.erl')
-rw-r--r-- | test/handlers/long_polling_sys_h.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handlers/long_polling_sys_h.erl b/test/handlers/long_polling_sys_h.erl index 7745d8c..8f85758 100644 --- a/test/handlers/long_polling_sys_h.erl +++ b/test/handlers/long_polling_sys_h.erl @@ -10,7 +10,7 @@ init(Req, _) -> process_flag(trap_exit, true), erlang:send_after(500, self(), timeout), - {cowboy_loop, Req, undefined, hibernate}. + {cowboy_loop, Req, undefined}. info(timeout, Req, State) -> %% Send an unused status code to make sure there's no @@ -19,5 +19,5 @@ info(timeout, Req, State) -> info(_, Req, State) -> {ok, Req, State}. -terminate({crash, _, _}, _, _) -> +terminate(_, _, _) -> ok. |