diff --git a/lightningd/plugin.c b/lightningd/plugin.c index 68d500c8f..89968f01c 100644 --- a/lightningd/plugin.c +++ b/lightningd/plugin.c @@ -33,13 +33,9 @@ /* Only this file can include this generated header! */ # include -/* How many seconds may the plugin take to reply to the `getmanifest` - * call? This is the maximum delay to `lightningd --help` and until - * we can start the main `io_loop` to communicate with peers. If this - * hangs we can't do much, so we put an upper bound on the time we're - * willing to wait. Plugins shouldn't do any initialization in the - * `getmanifest` call anyway, that's what `init` is for. */ -#define PLUGIN_MANIFEST_TIMEOUT 60 +/* How many seconds may the plugin take frome the `getmanifest` + * call to replying to the init call? */ +#define PLUGIN_STARTUP_TIMEOUT 120 static void memleak_help_pending_requests(struct htable *memtable, struct plugin *plugin) @@ -2012,7 +2008,7 @@ static void plugin_set_timeout(struct plugin *p) else { p->timeout_timer = new_reltimer(p->plugins->ld->timers, p, - time_from_sec(PLUGIN_MANIFEST_TIMEOUT), + time_from_sec(PLUGIN_STARTUP_TIMEOUT), plugin_manifest_timeout, p); } }