Skip to content

[receive] refactor recv to a loop instead of recursion - #63

Merged
stewartadam merged 2 commits into
RustLight:mainfrom
bruingineer:refactor-recv-to-use-loop-v-j
Jan 5, 2026
Merged

[receive] refactor recv to a loop instead of recursion#63
stewartadam merged 2 commits into
RustLight:mainfrom
bruingineer:refactor-recv-to-use-loop-v-j

Conversation

@bruingineer

@bruingineerbruingineer commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

Refactored recv to a loop instead of recursion to avoid a stack overflow during long durations between network packets, especially on memory-constrained embedded systems.

fixes#45

@bruingineer
bruingineerforce-pushed the refactor-recv-to-use-loop-v-j branch from 9cf5d6b to b3331c2CompareJanuary 4, 2026 22:05
@bruingineerbruingineer mentioned this pull request Jan 5, 2026
15 tasks
@bruingineer
bruingineerforce-pushed the refactor-recv-to-use-loop-v-j branch from b3331c2 to 9f0303bCompareJanuary 5, 2026 08:07
@stewartadam
stewartadam merged commit 8e0d1f9 into RustLight:mainJan 5, 2026
4 checks passed
@bruingineer
bruingineer deleted the refactor-recv-to-use-loop-v-j branch January 5, 2026 21:04
Sign up for freeto 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.

[receive] recv can potentially cause deep recursion

2 participants

@bruingineer@stewartadam