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

Shave off a few more seconds from rfc7540_SUITE

This commit is contained in:
Loïc Hoguin 2023-12-19 11:09:54 +01:00
parent 627a4508b5
commit 8fdb74a510
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 15 additions and 7 deletions

View file

@ -1094,6 +1094,7 @@ terminate(State=#state{socket=Socket, transport=Transport, http2_status=Status,
end,
terminate_all_streams(State, maps:to_list(Streams), Reason),
cowboy_children:terminate(Children),
%% @todo Don't linger on connection errors.
terminate_linger(State),
exit({shutdown, Reason});
%% We are not fully connected so we can just terminate the connection.