Skip to content

Conversation

@bruingineer
Copy link
Contributor

@bruingineer bruingineer commented Jan 4, 2026

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 bruingineer force-pushed the refactor-recv-to-use-loop-v-j branch from 9cf5d6b to b3331c2 Compare January 4, 2026 22:05
@bruingineer bruingineer mentioned this pull request Jan 5, 2026
14 tasks
@bruingineer bruingineer force-pushed the refactor-recv-to-use-loop-v-j branch from b3331c2 to 9f0303b Compare January 5, 2026 08:07
@stewartadam stewartadam merged commit 8e0d1f9 into RustLight:main Jan 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 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.

[receive] recv can potentially cause deep recursion

2 participants