diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index 9c92ec5..78d65d2 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -295,6 +295,7 @@ set_timeout(State=#state{streams=[], in_state=InState}, idle_timeout) when element(1, InState) =/= ps_body -> State; %% Otherwise we can set the timeout. +%% @todo Don't do this so often, use a strategy similar to Websocket/H2 if possible. set_timeout(State0=#state{opts=Opts, overriden_opts=Override}, Name) -> State = cancel_timeout(State0), Default = case Name of |