X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=81c2e40a0090aa09ecdeba30e94dd01ae6cd70a6;hb=a399f3b8cf792742d313326a5867071466e71aba;hp=9ea2bc10c9aaad10a3f9e8ca0d96b6d95b522b69;hpb=677f9d4ae7355cb6e5d05c3782a39e9022647f5b;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index 9ea2bc10..81c2e40a 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -257,7 +257,7 @@ sub disconnect my ($pkg, $fn, $line) = caller if $dbg; if ($count >= 2) { - dbg((ref $conn) . "::disconnect on call $conn->{call} attempt $conn->{disconnecting} called from ${pkg}::${fn} line $line FORCING CLOSE ") if $dbg; + dbgtrace((ref $conn) . "::disconnect on call $conn->{call} attempt $conn->{disconnecting} called from ${pkg}::${fn} line $line FORCING CLOSE ") if $dbg; _close_it($conn); return; } @@ -484,7 +484,7 @@ sub new_client { $sock->start; $conn->{peerhost} = $handle->peerhost || 'unknown'; $conn->{peerhost} =~ s|^::ffff:||; # chop off leading pseudo IPV6 stuff on dual stack listeners - $conn->{peerport} = $handle->peerport; + $conn->{peerport} = $handle->peerport || 0; dbg((ref $conn) . " accept $conn->{cnum} from $conn->{peerhost}:$conn->{peerport}") if isdbg('conn') || isdbg('connect'); my ($rproc, $eproc) = &{$server_conn->{rproc}} ($conn, $conn->{peerhost}, $conn->{peerport}); $conn->{sort} = 'Incoming'; @@ -553,8 +553,7 @@ sub DESTROY if (isdbg('connll')) { my ($pkg, $fn, $line) = caller; - dbg((ref $conn) . "::DESTROY on call $call called from ${pkg}::${fn} line $line "); - + dbgtrace((ref $conn) . "::DESTROY on call $call called from ${pkg}::${fn} line $line "); } my $call = $conn->{call} || 'unallocated';