From 13131babdb899e5cbd17cb9038746648afbc6b19 Mon Sep 17 00:00:00 2001 From: adjoly Date: Fri, 11 Jul 2025 17:03:09 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20change?= =?UTF-8?q?=20timeout=20to=2010s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/server/Cgi.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/server/Cgi.hpp b/includes/server/Cgi.hpp index 61d1f1d..e8661b0 100644 --- a/includes/server/Cgi.hpp +++ b/includes/server/Cgi.hpp @@ -6,7 +6,7 @@ /* By: gadelbes +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/24 13:46:34 by gadelbes #+# #+# */ -/* Updated: 2025/07/02 12:50:20 by adjoly ### ########.fr */ +/* Updated: 2025/07/11 17:02:37 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -77,10 +77,10 @@ class Cgi : public server::AClientResource { if (!isProcessed() && isReady()) { return false; } - if (std::difftime(std::time(NULL), _start_time) >= 1) { + if (std::difftime(std::time(NULL), _start_time) >= 10) { kill(_forkPid, SIGKILL); waitpid(_forkPid, NULL, 0); - _log->warn("Cgi close due to timeout >= 1s"); + _log->warn("Cgi close due to timeout >= 10s"); return true; } return false;