Use lock when popping requests on server shutdown#13422
Merged
kpayson64 merged 1 commit intogrpc:masterfrom Nov 17, 2017
Merged
Use lock when popping requests on server shutdown#13422kpayson64 merged 1 commit intogrpc:masterfrom
kpayson64 merged 1 commit intogrpc:masterfrom
Conversation
Doing this without a lock causes TSAN failures for quic. There isn't much need to be clever here because this only impacts shutdown performance, which doesn't really matter.
|
|
|
vjpai
approved these changes
Nov 16, 2017
Contributor
|
I approved, but can you go ahead and add in a comment saying why it's ok to do this under a lock. Any idea why the transport has an impact? |
Contributor
Author
|
As to why it fails with the quic transport, I'm not fully sure. The TSAN traces show concurrent |
Contributor
Author
lidizheng
pushed a commit
to lidizheng/grpc
that referenced
this pull request
Feb 12, 2021
This patch adds max_direct_response_body_size_bytes to set the maximum bytes of the direct response body size (in bytes). The config is added as a field in RouteConfiguration. Reviving grpc#13487 with a slightly different approach (add the config to RouteConfiguration instead of directly per direct response config entry). Risk Level: Low, since the default behavior is preserved. Testing: Updated to test the newly introduced config. Docs Changes: Updated. Release Notes: Added. Fixes grpc#13422 Signed-off-by: Dhi Aurrahman <[email protected]> Mirrored from https://github.com/envoyproxy/envoy @ eeb7adc3a30456f0d4ac65e5e6c8e88e25481d2a
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Doing this without a lock causes TSAN failures for quic.
There isn't much need to be clever here because this only impacts
shutdown performance, which doesn't really matter.