mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
The current implementation measures RPC request timeout only against config.RPCHoldTimeout, which is fine for non-blocking requests but will almost surely be exceeded by long-poll requests that block for minutes at a time. This adds an HasTimedOut method on the RPCInfo interface that takes into account whether the request is blocking, its maximum wait time, and the RPCHoldTimeout.
11 KiB
11 KiB