-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit minimal time poll.Wait* functions can wait between attempts (#2543
) Currently calculation of sleep time can make it negative, which makes `t.C` channel return right away and does not give ctx time to finish on deadline. This means that even if context is expired, retries still happen until there are no more retries. The fix is to cap minimal sleep time at 5ms to make sure that context can perform expiration. NOTE: we could make the minimal sleep smaller, but it's wouldn't make sense getting less than OS scheduling frequency. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
22391e1
commit 7629583
Showing
2 changed files
with
30 additions
and
8 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