aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/loop_handler_body_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/handlers/loop_handler_body_h.erl')
-rw-r--r--test/handlers/loop_handler_body_h.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/handlers/loop_handler_body_h.erl b/test/handlers/loop_handler_body_h.erl
index 559ef90..ac75773 100644
--- a/test/handlers/loop_handler_body_h.erl
+++ b/test/handlers/loop_handler_body_h.erl
@@ -4,15 +4,14 @@
%% then sends a 200 reply back.
-module(loop_handler_body_h).
--behaviour(cowboy_loop_handler).
--export([init/3]).
+-export([init/2]).
-export([info/3]).
-export([terminate/3]).
-init(_, Req, _) ->
+init(Req, _) ->
self() ! timeout,
- {loop, Req, undefined, 5000, hibernate}.
+ {long_polling, Req, undefined, 5000, hibernate}.
info(timeout, Req, State) ->
{ok, Body, Req2} = cowboy_req:body(Req),