diff options
author | Loïc Hoguin <[email protected]> | 2011-09-13 23:41:34 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-09-13 23:41:34 +0200 |
commit | b669b1b5a39de6acfa6eb051e53c31eeecc8733e (patch) | |
tree | 9a45b3152a1cd264e8f7246e5398c07a2d4b8009 /src/cowboy_http_protocol.erl | |
parent | 961526d70406d26b1d172c2cce72cae2b593f72a (diff) | |
download | cowboy-b669b1b5a39de6acfa6eb051e53c31eeecc8733e.tar.gz cowboy-b669b1b5a39de6acfa6eb051e53c31eeecc8733e.tar.bz2 cowboy-b669b1b5a39de6acfa6eb051e53c31eeecc8733e.zip |
Reset the max number of empty lines between keepalive requests
Fixes issue #47.
Diffstat (limited to 'src/cowboy_http_protocol.erl')
-rw-r--r-- | src/cowboy_http_protocol.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index 9923591..35a0471 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -246,7 +246,8 @@ next_request(HandlerState, Req=#http_req{buffer=Buffer}, State) -> RespRes = ensure_response(Req, State), case {HandlerRes, BodyRes, RespRes, State#state.connection} of {ok, ok, ok, keepalive} -> - ?MODULE:parse_request(State#state{buffer=Buffer}); + ?MODULE:parse_request(State#state{ + buffer=Buffer, req_empty_lines=0}); _Closed -> terminate(State) end. |