From 06fb82c944211b47614c4c5d01bda7524188c4c4 Mon Sep 17 00:00:00 2001 From: karnem <mikhail.karnevskiy@desy.de> Date: Mon, 15 Apr 2024 18:14:53 +0200 Subject: [PATCH] Change delay of TCP connection timeout --- common/cpp/src/system_io/system_io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cpp/src/system_io/system_io.h b/common/cpp/src/system_io/system_io.h index eba2d6e04..b7e561123 100644 --- a/common/cpp/src/system_io/system_io.h +++ b/common/cpp/src/system_io/system_io.h @@ -29,7 +29,7 @@ class SystemIO final : public IO { #if defined(__linux__) || defined (__APPLE__) // used to for epoll - assumed single epoll instance per class instance - static constexpr int kMaxEpollEvents = 10; + static constexpr int kMaxEpollEvents = 5; // Was 10 before, changed to decrease timeout mutable int epoll_fd_ = -1; Error AddToEpool(SocketDescriptor sd) const; Error CreateEpoolIfNeeded(SocketDescriptor master_socket) const; -- GitLab