aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-20 15:30:29 +0100
committerLoïc Hoguin <[email protected]>2011-03-20 15:30:29 +0100
commitf5e7178651b077b956ed75db4bce3fa5ae4512e6 (patch)
tree97abc8a9ae62bf8cd6ffda0b05ed37ae5702f9cd
parenta3fff2f5b0bc55b1996a49a57cfecc31220b1175 (diff)
downloadcowboy-f5e7178651b077b956ed75db4bce3fa5ae4512e6.tar.gz
cowboy-f5e7178651b077b956ed75db4bce3fa5ae4512e6.tar.bz2
cowboy-f5e7178651b077b956ed75db4bce3fa5ae4512e6.zip
Change a @todo for Handler:init possible return values.
-rw-r--r--src/cowboy_http_protocol.erl3
1 files changed, 1 insertions, 2 deletions
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.