This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FetchRequestStage: avoid log spam on send queue congestion. (#30)
When we send too many header slice fetch request at a time we start getting SendQueueFull, and pending_count stays positive. In this case execute() was not awaiting anything, and returning immediately just to get yet another SendQueueFull leading to a live spin. Fix this by calling sender.reserve_owned().await. Note: not using the await fn to avoid holding the sentry.read() lock while awaiting.
- Loading branch information
1 parent
490a90b
commit 91c2267
Showing
2 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters