mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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: https://github.com/LadybirdBrowser/ladybird/commit/db0dbb384e1 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_ACCEPT_ENCODING, "gzip, deflate, br");
|
||||||
set_option(CURLOPT_URL, url.to_string().value().to_byte_string().characters());
|
set_option(CURLOPT_URL, url.to_string().value().to_byte_string().characters());
|
||||||
set_option(CURLOPT_PORT, url.port_or_default());
|
set_option(CURLOPT_PORT, url.port_or_default());
|
||||||
|
set_option(CURLOPT_TIMEOUT, 90L);
|
||||||
|
|
||||||
if (method == "GET"sv) {
|
if (method == "GET"sv) {
|
||||||
set_option(CURLOPT_HTTPGET, 1L);
|
set_option(CURLOPT_HTTPGET, 1L);
|
||||||
|
|
Loading…
Reference in a new issue