Skip to content

htool_console: Reconnect USB on failure#224

Open
wak-google wants to merge 2 commits intogoogle:mainfrom
wak-google:console-retry
Open

htool_console: Reconnect USB on failure#224
wak-google wants to merge 2 commits intogoogle:mainfrom
wak-google:console-retry

Conversation

@wak-google
Copy link

We usually don't want to kill the console logger with an error when a USB failure occurs. Instead, we want to try reconnecting in a loop until the device comes back. This allows us to retain the console pointer around platform resets that cause USB disconnections and prevents our services streaming these logs from sending duplicate messages.

We usually don't want to kill the console logger with an error when a
USB failure occurs. Instead, we want to try reconnecting in a loop until
the device comes back. This allows us to retain the console pointer
around platform resets that cause USB disconnections and prevents our
services streaming these logs from sending duplicate messages.
It's possible that if the console is disconnected long enough we can
experience jumps in the console data because the buffer on the RoT side
was not big enough for our time lapse. Log any time this happens so we
can understand how much context we lost if any.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant