version 1.52, 2004/08/30 11:01:04
|
version 1.53, 2004/09/20 09:34:31
|
Line 310 sub Tick {
|
Line 310 sub Tick {
|
if($IdleSeconds > $IdleTimeout) { # Prune a connection... |
if($IdleSeconds > $IdleTimeout) { # Prune a connection... |
my $Socket = $IdleConnections->pop(); |
my $Socket = $IdleConnections->pop(); |
KillSocket($Socket); |
KillSocket($Socket); |
|
IdleSeconds = 0; # Otherwise all connections get trimmed to fast. |
} |
} |
} else { |
} else { |
$IdleSeconds = 0; # Reset idle count if not idle. |
$IdleSeconds = 0; # Reset idle count if not idle. |