Just comment some of the new xcatd changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9184142745
commit
177de72a68
@ -846,21 +846,22 @@ my $tconn;
|
||||
until ($quit) {
|
||||
$SIG{CHLD} = \&ssl_reaper; #set here to ensure that signal handler is not corrupted during loop
|
||||
if (@pendingconnections) {
|
||||
while ($listenwatcher->can_read(0)) { #grab everything we ca
|
||||
while ($listenwatcher->can_read(0)) { #grab everything we can, but don't spend any time waiting for more
|
||||
$tconn = $listener->accept;
|
||||
unless ($tconn) { next; }
|
||||
unless ($tconn) { next; }
|
||||
push @pendingconnections,$tconn;
|
||||
}
|
||||
} else {
|
||||
$tconn = $listener->accept;
|
||||
unless ($tconn) { next; }
|
||||
$tconn = $listener->accept; #we have no connections pending, no rush, just wait until the next connection attempt comes in
|
||||
unless ($tconn) { next; } #sometimes we get 'undef', in which case carry on with our lives...
|
||||
push @pendingconnections,$tconn;
|
||||
}
|
||||
unless (scalar @pendingconnections) { next; }
|
||||
if ($sslclients > $maxsslclients) { #THROTTLE
|
||||
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
|
||||
next; #just keep pulling things off listen queue onto our own
|
||||
}
|
||||
#we have a pending connection and we are under the threshold, grab one from the list and process it...
|
||||
my $cnnection=shift @pendingconnections;
|
||||
my $connection;
|
||||
my $child = xCAT::Utils->xfork(); #Yes we fork, IO::Socket::SSL is not threadsafe..
|
||||
|
Loading…
Reference in New Issue
Block a user