mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 04:10: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:
parent
086f60cca4
commit
1724575b42
2 changed files with 30 additions and 10 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue