From 2531b26acf804892b27a9171afa566ac007616ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 24 Jan 2025 13:05:45 +0100 Subject: Add initial http_perf_SUITE --- src/cowboy_http.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit v1.2.3