Skip to content

Break from loop when further attempting to read from propolis serial is pointless - #1283

Merged
lifning merged 1 commit into
oxidecomputer:mainfrom
lifning:tty-wait-in-the-poll
Jun 29, 2022
Merged

lifning merged 1 commit into
oxidecomputer:mainfrom
lifning:tty-wait-in-the-poll

Conversation

@lifning

@lifning lifning commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

This attempts to address CPU usage issues observed in #1264
(and also fixes an oversight wherein the read loop isn't abandoned when the connection is closed)

@lifning
lifning marked this pull request as ready for review June 27, 2022 06:53
@leftwo

leftwo commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

I verified this did solve the problem I was able to reproduce on Sock reported in issue 1264

Comment thread sled-agent/src/serial.rs Resolved
Comment thread sled-agent/src/serial.rs Resolved
Comment thread sled-agent/src/serial.rs Resolved
Comment thread sled-agent/src/serial.rs Resolved
…is pointless

This attempts to address CPU usage issues observed in
oxidecomputer#1264
(by fixing an oversight wherein the read loop isn't abandoned when
the connection is closed or encounters an error)
@lifning
lifning force-pushed the tty-wait-in-the-poll branch from de5960c to bc90718 Compare June 28, 2022 00:54
@lifning lifning changed the title Back off for a sec when reading from propolis serial is fruitless Break from loop when further attempting to read from propolis serial is pointless Jun 28, 2022
@lifning
lifning merged commit af1049c into oxidecomputer:main Jun 29, 2022
@lifning
lifning deleted the tty-wait-in-the-poll branch June 29, 2022 02:04
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.

3 participants