projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b96c31d
)
added offest to outgoing ping times
author
djk
<djk>
Fri, 19 Nov 1999 01:52:10 +0000
(
01:52
+0000)
committer
djk
<djk>
Fri, 19 Nov 1999 01:52:10 +0000
(
01:52
+0000)
perl/DXProt.pm
patch
|
blob
|
history
diff --git
a/perl/DXProt.pm
b/perl/DXProt.pm
index 486cfa95f6226f65422be3e09736c150bb7434ea..b8d563979b762f12e7e0ebf7db3ed37560a956aa 100644
(file)
--- a/
perl/DXProt.pm
+++ b/
perl/DXProt.pm
@@
-126,19
+126,23
@@
sub start
$self->send_now('B',"0");
$self->send_now('E',"0");
$self->send_now('B',"0");
$self->send_now('E',"0");
+ # ping neighbour node stuff
+ $self->pingint($user->pingint || 3*60);
+ $self->nopings(3);
+ $self->pingtime([ ]);
+
# send initialisation string
# send initialisation string
-
if (!
$self->{outbound}) {
+
unless (
$self->{outbound}) {
$self->send(pc38()) if DXNode->get_all();
$self->send(pc18());
$self->send(pc38()) if DXNode->get_all();
$self->send(pc18());
+ $self->lastping($main::systime);
+ } else {
# remove from outstanding connects queue
@main::outstanding_connects = grep {$_->{call} ne $call} @main::outstanding_connects;
# remove from outstanding connects queue
@main::outstanding_connects = grep {$_->{call} ne $call} @main::outstanding_connects;
+ $self->lastping($main::systime + $self->pingint / 2);
}
$self->state('init');
$self->pc50_t(time);
}
$self->state('init');
$self->pc50_t(time);
- $self->pingint($user->pingint || 3*60);
- $self->nopings(3);
- $self->lastping($main::systime);
- $self->pingtime([ ]);
Log('DXProt', "$call connected");
}
Log('DXProt', "$call connected");
}