aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_protocol.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-11 18:12:50 +0200
committerLoïc Hoguin <[email protected]>2011-10-11 18:12:50 +0200
commitbf1b84eb83f726d747dc62ec544be6199950f541 (patch)
tree58b892f9f29166988cf70c5a25991f59525ce040 /src/cowboy_http_protocol.erl
parenta55d1966f41e16271018500a948aba1697ba1eeb (diff)
downloadcowboy-bf1b84eb83f726d747dc62ec544be6199950f541.tar.gz
cowboy-bf1b84eb83f726d747dc62ec544be6199950f541.tar.bz2
cowboy-bf1b84eb83f726d747dc62ec544be6199950f541.zip
Fix a misnamed variable for {loop, ...} returns in init/3
Diffstat (limited to 'src/cowboy_http_protocol.erl')
-rw-r--r--src/cowboy_http_protocol.erl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl
index ef6d227..33c6333 100644
--- a/src/cowboy_http_protocol.erl
+++ b/src/cowboy_http_protocol.erl
@@ -208,16 +208,16 @@ handler_init(Req, State=#state{listener=ListenerPid,
try Handler:init({Transport:name(), http}, Req, Opts) of
{ok, Req2, HandlerState} ->
handler_handle(HandlerState, Req2, State);
- {loop, Req, HandlerState} ->
- handler_before_loop(HandlerState, Req, State);
- {loop, Req, HandlerState, hibernate} ->
- handler_before_loop(HandlerState, Req,
+ {loop, Req2, HandlerState} ->
+ handler_before_loop(HandlerState, Req2, State);
+ {loop, Req2, HandlerState, hibernate} ->
+ handler_before_loop(HandlerState, Req2,
State#state{hibernate=true});
- {loop, Req, HandlerState, Timeout} ->
- handler_before_loop(HandlerState, Req,
+ {loop, Req2, HandlerState, Timeout} ->
+ handler_before_loop(HandlerState, Req2,
State#state{loop_timeout=Timeout});
- {loop, Req, HandlerState, Timeout, hibernate} ->
- handler_before_loop(HandlerState, Req,
+ {loop, Req2, HandlerState, Timeout, hibernate} ->
+ handler_before_loop(HandlerState, Req2,
State#state{hibernate=true, loop_timeout=Timeout});
{shutdown, Req2, HandlerState} ->
handler_terminate(HandlerState, Req2, State);