From db0dbb384e1b6681946282fcc63a83781330488a Mon Sep 17 00:00:00 2001 From: rmg-x Date: Wed, 9 Oct 2024 19:25:51 -0500 Subject: [PATCH] RequestServer: Set default timeout to 90 seconds for all requests --- Userland/Services/RequestServer/ConnectionFromClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Services/RequestServer/ConnectionFromClient.cpp b/Userland/Services/RequestServer/ConnectionFromClient.cpp index 0217d410255..7482e1d88de 100644 --- a/Userland/Services/RequestServer/ConnectionFromClient.cpp +++ b/Userland/Services/RequestServer/ConnectionFromClient.cpp @@ -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);