0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Avoid resetting HTTP/2 idle_timeout timer too often

Following the same strategy as Websocket described in
commit cbed21c383e4cebb7df5a0a8b81f18c1738bef3e

Gains are comparable as far as Websocket over HTTP/2
is concerned.
This commit is contained in:
Loïc Hoguin 2025-01-08 16:54:14 +01:00
parent 086f60cca4
commit 1724575b42
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 30 additions and 10 deletions

View file

@ -39,7 +39,7 @@ groups() ->
init_per_suite(Config) ->
%% Optionally enable `perf` for the current node.
% spawn(fun() -> ct:pal(os:cmd("perf record -g -F 9999 -o /tmp/ws_perf.data -p " ++ os:getpid() ++ " -- sleep 11")) end),
% spawn(fun() -> ct:pal(os:cmd("perf record -g -F 9999 -o /tmp/ws_perf.data -p " ++ os:getpid() ++ " -- sleep 60")) end),
Config.
end_per_suite(_Config) ->