From 4d5174632cc1feac541697b18e6fbbdd0eed021b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 23 Mar 2018 18:33:16 +0100 Subject: Add initial support for system messages in cowboy_loop --- test/handlers/long_polling_sys_h.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/handlers') 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. -- cgit v1.2.3