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

Add initial http_perf_SUITE

This commit is contained in:
Loïc Hoguin 2025-01-24 13:05:45 +01:00
parent 05d77153a0
commit 2531b26acf
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
4 changed files with 171 additions and 20 deletions

View file

@ -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