Every second we release one connection, so we don't get stuck even * if there are many peers to connect to and lightningd doesn't attach * subds to any of them. */
| 1648 | * if there are many peers to connect to and lightningd doesn't attach |
| 1649 | * subds to any of them. */ |
| 1650 | static void release_one_connection_from_timer(struct daemon *daemon) |
| 1651 | { |
| 1652 | release_one_waiting_connection(daemon, "timer"); |
| 1653 | |
| 1654 | daemon->connect_release_timer |
| 1655 | = new_reltimer(&daemon->timers, |
| 1656 | daemon, |
| 1657 | time_from_sec(1), |
| 1658 | release_one_connection_from_timer, |
| 1659 | daemon); |
| 1660 | } |
| 1661 | |
| 1662 | /*~ Parse the incoming connect init message from lightningd ("master") and |
| 1663 | * assign config variables to the daemon; it should be the first message we |
no test coverage detected