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

Reduce sleep in chunked_one_byte_at_a_time

To avoid having the connection get closed due to us taking
too long on unreliable environments like GitHub Actions.
This commit is contained in:
Loïc Hoguin 2024-01-18 15:19:23 +01:00
parent 992ee6241d
commit e8b4715a9f
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -90,7 +90,7 @@ chunked_one_byte_at_a_time(Config) ->
"Transfer-encoding: chunked\r\n\r\n"),
_ = [begin
raw_send(Client, <<C>>),
timer:sleep(10)
timer:sleep(1)
end || <<C>> <= ChunkedBody],
Rest = case catch raw_recv_head(Client) of
{'EXIT', _} -> error(closed);