Description
The serial console wait logic (see below) has no affordance to stop waiting and return an error if the serial console connection is lost.
propolis/phd-tests/framework/src/serial/vt100.rs
Lines 122 to 131 in 5a6a332
While wait-for-serial operations have a timeout, this can be long (5 minutes in the wait-to-boot case), so it's a bummer to have to wait it out if the VM is just totally gone (e.g. because the test did something that made the server panic).
The serial console websocket listener (below) can detect this case and send a message on its output_tx
telling the VT processor (which actually handles the waits) that the connection is gone, allowing the listener to send a failure message/close its end of the channel/whatever behavior we decide is most appropriate.
propolis/phd-tests/framework/src/serial/mod.rs
Lines 29 to 41 in 5a6a332