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