Skip to content
Snippets Groups Projects
Unverified Commit 76185e3a authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

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
parent 3386221e
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ local function match(a, b, n) ...@@ -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 (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment