You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "cnzakii (via GitHub)" <gi...@apache.org> on 2025/05/12 10:46:34 UTC
[I] [Bug] The value of `grpc-timeout` may not comply with the specification [dubbo]
cnzakii opened a new issue, #15377:
URL: https://github.com/apache/dubbo/issues/15377
### Pre-check
- [x] I am sure that all the content I provide is in English.
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
### Apache Dubbo Component
Java SDK (apache/dubbo)
### Dubbo Version
Dubbo 3.3
### Steps to reproduce this issue
The value of grpc-timeout may not comply with the specification. In the `TripleInvoker` class, the timeout is simply set through string concatenation.

According to [[gRPC's specification](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests)](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests), TimeoutValue is a positive integer represented as an ASCII string with a maximum of 8 digits, so a TimeoutValue that is too long could result in a gRPC error.

### What you expected to happen
Add a `getTimeoutHeaderValue` method to `GrpcUtils` to generate an appropriate TimeoutValue for grpc-timeout using a greedy strategy.
### Anything else
_No response_
### Are you willing to submit a pull request to fix on your own?
- [x] Yes I am willing to submit a pull request on my own!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] The value of `grpc-timeout` may not comply with the specification [dubbo]
Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ closed issue #15377: [Bug] The value of `grpc-timeout` may not comply with the specification
URL: https://github.com/apache/dubbo/issues/15377
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org