diff options
author | Loïc Hoguin <[email protected]> | 2013-04-12 14:34:36 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-04-12 14:34:36 +0200 |
commit | 61ca459febef545c642dc716068d770518deea99 (patch) | |
tree | afc1533870fed7fcd65b15813132ec0e832c0651 /src/cowboy_handler.erl | |
parent | 2aabc73045daa1c06d73c76ffc442ee7ebe38d14 (diff) | |
download | cowboy-61ca459febef545c642dc716068d770518deea99.tar.gz cowboy-61ca459febef545c642dc716068d770518deea99.tar.bz2 cowboy-61ca459febef545c642dc716068d770518deea99.zip |
Don't receive data from the socket only once in the loop handler
Diffstat (limited to 'src/cowboy_handler.erl')
-rw-r--r-- | src/cowboy_handler.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_handler.erl b/src/cowboy_handler.erl index 7d00524..e040554 100644 --- a/src/cowboy_handler.erl +++ b/src/cowboy_handler.erl @@ -200,7 +200,7 @@ handler_loop(Req, State=#state{loop_buffer_size=NbBytes, Req2 = cowboy_req:append_buffer(Data, Req), State2 = handler_loop_timeout(State#state{ loop_buffer_size=NbBytes2}), - handler_loop(Req2, State2, Handler, HandlerState) + handler_before_loop(Req2, State2, Handler, HandlerState) end; {Closed, Socket} -> terminate_request(Req, State, Handler, HandlerState, |