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:
parent
992ee6241d
commit
e8b4715a9f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue