-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: use vu ctx instead of request ctx for pushing metrics
PushIfNotDone is intended to use with VU context instead of request context. This is a bug in current code base, but it is not triggered due to the bug in Go net/http. A request context can be in cancelled state due to be cancelled or timeouted. PushIfNotDone won't see the difference and will skip pushing metrics for timeouted requests. Fixing it by passing VU context to PushIfNotDone instead of request ctx. Fixes #1260
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 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
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