Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Allow to override default read timeout for a specific API #202

Closed
lbertrand opened this issue Dec 29, 2016 · 2 comments
Closed

Allow to override default read timeout for a specific API #202

lbertrand opened this issue Dec 29, 2016 · 2 comments

Comments

@lbertrand
Copy link

In order to use the library for normal API and also the blocking API, in order to watch KV modifications, for example, we have to create 2 consul client as the read timeout is set up at the client level ,but can't be overriden on a specific API call.

If we want to reuse the same client, either we have to accept a longer timeout for normal APIs, like if we want to block for watching for 5 minutes. Or accept that the blocking API will only block for 10 seconds, for example, which is the default for normal operation?

@rickfast
Copy link
Owner

rickfast commented Jan 3, 2017

I'll take a look at options for this. Not sure if there's a clean way to do this and preserve the current API

@yfouquet
Copy link
Collaborator

Hi @lbertrand ,
I think that #289 fixed your issue, and it can be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants