mirror of https://github.com/hashicorp/consul
Browse Source
The timeout should include the maximum possible jitter since the server will randomly add to it's timeout a jitter. If the server's timeout is less than the client's timeout then the client will return an i/o deadline reached error. Before: ``` time curl 'http://localhost:8500/v1/catalog/service/service?dc=other-dc&stale=&wait=600s&index=15820644' rpc error making call: i/o deadline reached real 10m11.469s user 0m0.018s sys 0m0.023s ``` After: ``` time curl 'http://localhost:8500/v1/catalog/service/service?dc=other-dc&stale=&wait=600s&index=15820644' [...] real 10m35.835s user 0m0.021s sys 0m0.021s ```pull/14242/head
James Hartig
2 years ago
committed by
Chris S. Kim
3 changed files with 8 additions and 4 deletions
@ -0,0 +1,3 @@
|
||||
```release-note:bugfix |
||||
rpc: Adds max jitter to client deadlines to prevent i/o deadline errors on blocking queries |
||||
``` |
Loading…
Reference in new issue