[A·M2 follow-up] Idle timeout + connection cap on emulators #21
Labels
No labels
bug
deploy
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
femboy/blackwall#21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the M2 review.
HttpEmulator::handlereads with no timeout, so a client that connects and never sends the header terminator parks a task+FD indefinitely; per-conn tasks are also unbounded in count. Wrap each emulatorhandleintokio::time::timeoutand add a bounded semaphore inserveto prevent task/FD exhaustion. (Tarpit delays remain intentional.)