-
Notifications
You must be signed in to change notification settings - Fork 4.6k
server: allow 0s grpc-timeout header values, as java is known to be able to send them #8439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8439 +/- ##
==========================================
+ Coverage 82.26% 82.34% +0.07%
==========================================
Files 414 414
Lines 40410 40418 +8
==========================================
+ Hits 33243 33281 +38
+ Misses 5796 5774 -22
+ Partials 1371 1363 -8
🚀 New features to boost your workflow:
|
…ble to send them (grpc#8439)
…ble to send them (grpc#8439)
Please note that this change has changed the behavior of Previously, when Now, however, there's no such guarantee anymore. I wonder if it would be possible to move this early return before the inTapHandle call? |
The reason I put this after the intaphandle call is because that is able to change the context to one that has already expired. I'm also curious about your use case. Can you not track in-flight requests entirely within the stats handler (increment on |
grpc/grpc-java#12201 was recently created to prevent this, but older versions will still do it. This reverts our old behavior of allowing 0 second timeouts (pre- #8290).
I would propose that we do not revert the change in http_util and allow the RPC to instantly timeout instead of throw an internal error.
cc @ejona86
RELEASE NOTES: