Closed doitian closed 3 years ago
This is expected behavior, and Tentacle cannot prevent users from doing strange things like this
For the timeout, I think we can use saturating_add
to prevent the overflow. Just a little improvement.
For the timeout, I think we can use
saturating_add
to prevent the overflow. Just a little improvement.
https://github.com/tokio-rs/tokio/blob/master/tokio/src/time/timeout.rs#L52 The addition of timeout depends on the implementation of the runtime library
In
ServiceBuilder
, if the timeout is set to 0:The dialing always fails.
If the timeout is set to very large, e.g.,
The process panicked because of the error: