Skip to content

Overall connect deadline for boards that flood output - #196

Merged
bdbarnett merged 3 commits into
mainfrom
fix/193-connect-deadline
Oct 30, 2026
Merged

bdbarnett merged 3 commits into
mainfrom
fix/193-connect-deadline

Conversation

@bdbarnett

Copy link
Copy Markdown
Collaborator

A board printing continuously (for example a machine.Timer callback that never stops) defeats mpremote's between-byte timeout, so connect, ls and exec waited with no explanation. Taking control of a serial board now has a 45 s deadline per attempt (MPFTP_CONNECT_DEADLINE overrides it). When it passes, mpftp stops, without retrying or toggling reset lines, and says the board is printing continuously and that a board with only native USB needs its RESET button.

Tested with a fake transport that streams forever; the test hangs without the change.

Closes #193

@bdbarnett
bdbarnett force-pushed the fix/193-connect-deadline branch from 547957a to 3c5bd35 Compare October 30, 2026 04:52
@bdbarnett
bdbarnett merged commit 6032cf2 into main Oct 30, 2026
7 checks passed
@bdbarnett
bdbarnett deleted the fix/193-connect-deadline branch October 30, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

A board whose callback floods the REPL leaves exec and ls waiting with no explanation

1 participant