X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUser.pm;fp=perl%2FDXUser.pm;h=85a22195f9a08de314cf0389b194cb273d4db51c;hb=c87f5c87d207de16008d38561a7bc547a10ea62b;hp=5e8f2dfab50abfb600c7fe128881e892a09b44cb;hpb=47a2468ee764241b78a330e2391f89dc886cbcad;p=spider.git diff --git a/perl/DXUser.pm b/perl/DXUser.pm index 5e8f2dfa..85a22195 100644 --- a/perl/DXUser.pm +++ b/perl/DXUser.pm @@ -474,7 +474,10 @@ sub close my $ip = shift; $self->{lastin} = $main::systime; # add a record to the connect list -# $self->put(); + my $ref = [$startt || $self->{startt}, $main::systime]; + push @$ref, $ip if $ip; + push @{$self->{connlist}}, $ref; + shift @{$self->{connlist}} if @{$self->{connlist}} > $maxconnlist; } #