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