X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXXml%2FPing.pm;h=59c8ff3e6ee9067c0f16378b7660c82d820e08fd;hb=0dff8311e76fac314d73e64b4af1a8beabfe166d;hp=e02b61f85ca081a9fceb5fbf823c485d41621c2d;hpb=3911e74f910a67420878ff0324a051c98dfdf7ae;p=spider.git diff --git a/perl/DXXml/Ping.pm b/perl/DXXml/Ping.pm index e02b61f8..59c8ff3e 100644 --- a/perl/DXXml/Ping.pm +++ b/perl/DXXml/Ping.pm @@ -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}); }