Handle timeout. */
| 122 | |
| 123 | /* Handle timeout. */ |
| 124 | static void |
| 125 | close_command_timeout(struct close_command *cc) |
| 126 | { |
| 127 | /* This will trigger drop_to_chain, which will trigger |
| 128 | * resolution of the command and destruction of the |
| 129 | * close_command. */ |
| 130 | json_notify_fmt(cc->cmd, LOG_INFORM, |
| 131 | "Timed out, forcing close."); |
| 132 | channel_fail_permanent(cc->channel, REASON_USER, |
| 133 | "Forcibly closed by `close` command timeout"); |
| 134 | } |
| 135 | |
| 136 | /* Construct a close command structure and add to ld. */ |
| 137 | static void |
nothing calls this directly
no test coverage detected