plugin_control: halve the timeout delay

20 seconds was way too long for UX, and 10 seconds is more than enough for the plugin to error
This commit is contained in:
darosior 2019-10-11 13:09:16 +02:00 committed by neil saitug
parent 362775bc02
commit 744b727206

View file

@ -125,7 +125,7 @@ static struct command_result *plugin_start(struct dynamic_plugin *dp)
/* Give the plugin 20 seconds to respond to `getmanifest`, so we don't hang
* too long on the RPC caller. */
p->timeout_timer = new_reltimer(dp->cmd->ld->timers, dp,
time_from_sec(20),
time_from_sec((10)),
plugin_dynamic_timeout, dp);
/* Create two connections, one read-only on top of the plugin's stdin, and one