From fdc408f2705f408a443eb88bba9ab4a37eec83d0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 27 May 2015 10:35:10 -0400 Subject: [PATCH] Decrease forecast as presumed real clients connect The fudge factor is now decremented according to real number of clients counted toward sslclient count. Also, have the overload case break into flow control communication as well (though it wouldn't have a good answer for an interested client) --- xCAT-server/sbin/xcatd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 548c58bb9..6dac1d512 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1160,7 +1160,7 @@ until ($quit) { } unless (scalar @pendingconnections) { next; } #if for some reason we landed here without any accepted connections, carry on.. if ($sslclients > $maxsslclients) { #we have enough children, wait for some to exit before spawning more - $listenwatcher->can_read(0.1); #when next connection tries to come in or a tenth of a second, whichever comes first + $bothwatcher->can_read(0.1); #when next connection tries to come in or a tenth of a second, whichever comes first next; #just keep pulling things off listen queue onto our own } # before we fork, check to see if rescanplugins was previously processed and @@ -1268,6 +1268,7 @@ if ($inet6support) { service_connection($connection,$peername,$peerhost,$peerfqdn,$peerhostorg); xexit(0); } + if ($sslfudgefactor) { $sslfudgefactor -= 1; } $sslclients++; #THROTTLE $cnnection->close(); }