mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
RequestServer: Set default timeout to 90 seconds for all requests
This commit is contained in:
parent
ff18114ae7
commit
db0dbb384e
Notes:
github-actions[bot]
2024-10-10 18:57:08 +00:00
Author: https://github.com/rmg-x
Commit: db0dbb384e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1638
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 0 deletions
|
@ -285,6 +285,7 @@ void ConnectionFromClient::start_request(i32 request_id, ByteString const& metho
|
|||
set_option(CURLOPT_ACCEPT_ENCODING, "gzip, deflate, br");
|
||||
set_option(CURLOPT_URL, url.to_string().value().to_byte_string().characters());
|
||||
set_option(CURLOPT_PORT, url.port_or_default());
|
||||
set_option(CURLOPT_TIMEOUT, 90L);
|
||||
|
||||
if (method == "GET"sv) {
|
||||
set_option(CURLOPT_HTTPGET, 1L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue