Skip to content

Commit

Permalink
listen backlog default set to SOMAXCONN
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Nov 6, 2024
1 parent c85ca6c commit f12e522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eckit/net/SocketOptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

#include <ostream>
#include <sys/socket.h>

#include "eckit/config/Resource.h"
#include "eckit/net/SocketOptions.h"
Expand All @@ -18,7 +19,7 @@ namespace eckit::net {
static void init(SocketOptions& opts) {

static std::string bindAddr = Resource<std::string>("localBindingAddress", ""); /* "127.0.0.1" */
static int ListenBacklog = eckit::Resource<int>("socketOptionsListenBacklog", 128);
static int ListenBacklog = eckit::Resource<int>("socketOptionsListenBacklog", SOMAXCONN);

static bool reusePort = eckit::Resource<bool>("socketOptionsReusePort", false);
static bool reuseAddr = eckit::Resource<bool>("socketOptionsReuseAddr", false);
Expand Down

0 comments on commit f12e522

Please sign in to comment.