RequestServer: Set default timeout to 90 seconds for all requests

This commit is contained in:
rmg-x 2024-10-09 19:25:51 -05:00 committed by Sam Atkins
parent ff18114ae7
commit db0dbb384e
Notes: github-actions[bot] 2024-10-10 18:57:08 +00:00

View file

@ -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);