From f5e7178651b077b956ed75db4bce3fa5ae4512e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 20 Mar 2011 15:30:29 +0100 Subject: Change a @todo for Handler:init possible return values. --- src/cowboy_http_protocol.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cowboy_http_protocol.erl') diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index 3e4116c..2847646 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -136,7 +136,7 @@ handler_init(Req, State=#state{handler={Handler, Opts}}) -> case catch Handler:init(Req, Opts) of {ok, Req, HandlerState} -> handler_loop(HandlerState, Req, State); - %% @todo {mode, active}; {upgrade_protocol, Module}; {error, Reason} + %% @todo {upgrade, transport, Module}; {upgrade, protocol, Module} {'EXIT', _Reason} -> error_terminate(500, State) end. @@ -147,7 +147,6 @@ handler_loop(HandlerState, Req, State=#state{handler={Handler, _Opts}}) -> case catch Handler:handle(Req, HandlerState) of {ok, Req2, HandlerState2} -> handler_terminate(HandlerState2, Req2, State); - %% @todo {mode, active} {'EXIT', _Reason} -> terminate(State) end. -- cgit v1.2.3