diff options
Diffstat (limited to 'test/handlers/long_polling_h.erl')
-rw-r--r-- | test/handlers/long_polling_h.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/handlers/long_polling_h.erl b/test/handlers/long_polling_h.erl index 1b240fd..20fe7ee 100644 --- a/test/handlers/long_polling_h.erl +++ b/test/handlers/long_polling_h.erl @@ -11,15 +11,15 @@ init(Req, _) -> erlang:send_after(200, self(), timeout), - {long_polling, Req, 2, 5000, hibernate}. + {cowboy_loop, Req, 2, 5000, hibernate}. info(timeout, Req, 0) -> - {ok, cowboy_req:reply(102, Req), 0}; + {shutdown, cowboy_req:reply(102, Req), 0}; info(timeout, Req, Count) -> erlang:send_after(200, self(), timeout), - {loop, Req, Count - 1, hibernate}. + {ok, Req, Count - 1, hibernate}. -terminate({normal, shutdown}, _, 0) -> +terminate(shutdown, _, 0) -> ok; terminate({error, overflow}, _, _) -> ok. |