mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 15:57:12 +00:00
get alternate pinging working properly at half pingint
This commit is contained in:
parent
3911e74f91
commit
0dff8311e7
@ -156,7 +156,6 @@ sub process
|
||||
DXXml::Ping::add($main::me, $dxchan->call);
|
||||
$dxchan->{nopings} -= 1;
|
||||
$dxchan->{lastping} = $t;
|
||||
$dxchan->{lastping} += $dxchan->{pingint} / 2 unless @{$dxchan->{pingtime}};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,9 @@ sub handle_input
|
||||
ot=>$self->{t}
|
||||
);
|
||||
$dxchan->send($rep->toxml);
|
||||
if ($dxchan->{outgoing} && abs($dxchan->{lastping} - $main::systime) < 15) {
|
||||
$dxchan->{lastping} += $dxchan->{pingint} / 2;
|
||||
}
|
||||
} else {
|
||||
handle_ping_reply($dxchan, $self->{o}, $self->{ot}, $self->{oid});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user