From cb8964c7abcf7e8a878768e8b8806f23f23642dd Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 7 Dec 2017 13:22:34 +0100 Subject: [PATCH] clusterd: Increase listen queue size for clp port With 234 hosts pulling a file we failed to service a single on with the old setting listen=1. --- clusterd/clusterd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clusterd/clusterd b/clusterd/clusterd index 60fc54f..97867d9 100755 --- a/clusterd/clusterd +++ b/clusterd/clusterd @@ -1302,7 +1302,7 @@ our $clp_listen_socket; our %CLP_HANDLER=('CMD'=>\&clp_rx_CMD,'LSOF'=>\&clp_rx_LSOF,'PULL'=>\&clp_rx_PULL); sub clp_init { - $clp_listen_socket=new IO::Socket::INET(LocalPort=>$CLP_PORT,Proto=>'tcp',Listen=>1,ReuseAddr=>1); + $clp_listen_socket=new IO::Socket::INET(LocalPort=>$CLP_PORT,Proto=>'tcp',Listen=>128,ReuseAddr=>1); defined $clp_listen_socket or die "$!\n"; My::Select::reader($clp_listen_socket,\&clp_connect_request); }