Skip to content

Commit d1e5dee

Browse files
committed
fix documentation of [RasSrv::LRQFeatures] NeighborTimeout and consistently treat the value as 10th of a second
1 parent 18bf387 commit d1e5dee

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Neighbor.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class NeighborPingThread : public PThread, public RasRequester {
279279

280280
void NeighborPingThread::Main()
281281
{
282-
int timeout = GkConfig()->GetInteger(LRQFeaturesSection, "NeighborTimeout", 5) * 1000;
282+
int timeout = GkConfig()->GetInteger(LRQFeaturesSection, "NeighborTimeout", 5) * 100;
283283
PString pingAlias = GkConfig()->GetString(LRQFeaturesSection, "PingAlias", "gatekeeper-monitoring-check");
284284
H225_ArrayOf_AliasAddress aliases;
285285
aliases.SetSize(1);
@@ -1939,7 +1939,7 @@ class NeighborPolicy : public Policy {
19391939

19401940
NeighborPolicy::NeighborPolicy() : m_neighbors(*RasServer::Instance()->GetNeighbors())
19411941
{
1942-
m_neighborTimeout = GkConfig()->GetInteger(LRQFeaturesSection, "NeighborTimeout", 5) * 1000;
1942+
m_neighborTimeout = GkConfig()->GetInteger(LRQFeaturesSection, "NeighborTimeout", 5) * 100;
19431943
m_name = "Neighbor";
19441944
}
19451945

changes.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Changes from 5.9 to 5.10
22
========================
3+
- BUGFIX(Neighbor.cxx, neighbors.sgml) fix documentation of [RasSrv::LRQFeatures] NeighborTimeout
4+
and consistently treat the value as 10th of a second
35
- fix crash when handling MSD
46

57

docs/manual/neighbors.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ The <tt/[RasSrv::Neighbors]/ section is only used to specify the gatekeeper type
7373
Defines some features of LRQ and LCF.
7474
<itemize>
7575
<item><tt/NeighborTimeout=1/<newline>
76-
Default: <tt/2/<newline>
76+
Default: <tt/5/<newline>
7777
<p>
78-
Timeout value in seconds to wait for responses from neighbors.
78+
Timeout value in 10th of a second to wait for responses from neighbors.
7979
If no neighbor responds before the timeout, the gatekeeper will
8080
reply with an ARJ to the endpoint sending the ARQ.
8181

0 commit comments

Comments
 (0)