connectd: keep timeout timer around so we can disable it.

connectd will be keeping the conn open, so it needs to free this
"conn_timeout" timer.  Pass it through, so we can do that.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-01-08 23:47:29 +10:30
parent 562e6c4a93
commit 7e7a63a20d
8 changed files with 58 additions and 23 deletions

View File

@@ -8,6 +8,7 @@ struct daemon;
struct io_conn;
struct node_id;
struct wireaddr_internal;
struct oneshot;
/* If successful, calls peer_connected() */
struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
@@ -16,6 +17,7 @@ struct io_plan *peer_exchange_initmsg(struct io_conn *conn,
const struct crypto_state *cs,
const struct node_id *id,
const struct wireaddr_internal *addr,
struct oneshot *timeout,
bool incoming);
#endif /* LIGHTNING_CONNECTD_PEER_EXCHANGE_INITMSG_H */