Another small cleanup
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@463 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
4b72a40100
commit
314625d05a
@ -140,14 +140,12 @@ $> = $quid;
|
|||||||
while (1) {
|
while (1) {
|
||||||
REAPER();
|
REAPER();
|
||||||
my $running = scalar keys %childstatus;
|
my $running = scalar keys %childstatus;
|
||||||
if ($running >= $MAXCONN) {
|
if ($running >= $MAXCONN) {
|
||||||
::log(LOGINFO,"Too many connections: $running >= $MAXCONN. Waiting one second.");
|
::log(LOGINFO,"Too many connections: $running >= $MAXCONN. Waiting one second.");
|
||||||
sleep(1);
|
sleep(1);
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if (!$sel->can_read(1)) {
|
next unless $sel->can_read(1);
|
||||||
next;
|
|
||||||
}
|
|
||||||
my $hisaddr = accept(my $client, $server);
|
my $hisaddr = accept(my $client, $server);
|
||||||
if (!$hisaddr) {
|
if (!$hisaddr) {
|
||||||
# possible something condition...
|
# possible something condition...
|
||||||
|
Loading…
Reference in New Issue
Block a user