gluon-status-page: relax nodeinfo query timeout (#2262)

It was found that a one second timeout for nodeinfo data may be too low,
so that when a node is otherwise occupied that timeout may be reached
too often.

The nodeinfo query response is also vital to the status-page base
template, so that when it times out, the site will be turned in a broken
state, that it cannot recover from.

Fixes: #2256
This commit is contained in:
Martin Weinelt 2021-07-12 19:23:29 +02:00 committed by GitHub
parent 3386221ef1
commit 76185e3a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ local function match(a, b, n)
end end
entry({}, call(function(http, renderer) entry({}, call(function(http, renderer)
local nodeinfo = json.parse(util.exec('exec gluon-neighbour-info -d ::1 -p 1001 -t 1 -c 1 -r nodeinfo')) local nodeinfo = json.parse(util.exec('exec gluon-neighbour-info -d ::1 -p 1001 -t 3 -c 1 -r nodeinfo'))
local node_ip = parse_ip(http:getenv('SERVER_ADDR')) local node_ip = parse_ip(http:getenv('SERVER_ADDR'))
if node_ip and ( if node_ip and (