diff options
author | Loïc Hoguin <[email protected]> | 2011-03-20 14:24:43 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-20 14:24:43 +0100 |
commit | df35916d2a84c0c5097b2ff9236aa3432a92f675 (patch) | |
tree | 78068243c920c952ab8fd023241bd9d0d153439b | |
parent | c4d4b6a051dbb15d027564fe8bd194080dcda964 (diff) | |
download | cowboy-df35916d2a84c0c5097b2ff9236aa3432a92f675.tar.gz cowboy-df35916d2a84c0c5097b2ff9236aa3432a92f675.tar.bz2 cowboy-df35916d2a84c0c5097b2ff9236aa3432a92f675.zip |
Allow code reloading inside the cowboy_http_protocol module during keep-alive.
-rw-r--r-- | src/cowboy_http_protocol.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index 4a74cb5..423c641 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -14,7 +14,7 @@ -module(cowboy_http_protocol). -export([start_link/3]). %% API. --export([init/3]). %% FSM. +-export([init/3, wait_request/1]). %% FSM. -include("include/types.hrl"). -include("include/http.hrl"). @@ -177,7 +177,7 @@ terminate(#state{socket=Socket, transport=Transport}) -> -spec next_request(State::#state{}) -> ok. next_request(State=#state{connection=keepalive}) -> - wait_request(State); + ?MODULE:wait_request(State); next_request(State=#state{connection=close}) -> terminate(State). |