From f12e52278dda6cda7bef6bcf2ce93482593d081b Mon Sep 17 00:00:00 2001 From: Emanuele Danovaro Date: Wed, 6 Nov 2024 22:04:55 +0000 Subject: [PATCH] listen backlog default set to SOMAXCONN --- src/eckit/net/SocketOptions.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eckit/net/SocketOptions.cc b/src/eckit/net/SocketOptions.cc index e180c0e54..530ecf170 100644 --- a/src/eckit/net/SocketOptions.cc +++ b/src/eckit/net/SocketOptions.cc @@ -9,6 +9,7 @@ */ #include +#include #include "eckit/config/Resource.h" #include "eckit/net/SocketOptions.h" @@ -18,7 +19,7 @@ namespace eckit::net { static void init(SocketOptions& opts) { static std::string bindAddr = Resource("localBindingAddress", ""); /* "127.0.0.1" */ - static int ListenBacklog = eckit::Resource("socketOptionsListenBacklog", 128); + static int ListenBacklog = eckit::Resource("socketOptionsListenBacklog", SOMAXCONN); static bool reusePort = eckit::Resource("socketOptionsReusePort", false); static bool reuseAddr = eckit::Resource("socketOptionsReuseAddr", false);