Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetOption donot has timeout #1326

Open
gravityhurry opened this issue Feb 23, 2024 · 1 comment
Open

GetOption donot has timeout #1326

gravityhurry opened this issue Feb 23, 2024 · 1 comment

Comments

@gravityhurry
Copy link

client.getKVClient()
.get(EtcdTemplate.toByteSequence("cd"), GetOption.builder().build())
.get() (3 line)

ClientBuilder i set connectTimeout = 30 s keepaliveTimeout = 30s keepaliveTime =30 s
When the network is abnormal, I find that the 3line .get() is blocked continuously.
As the service party, I hope that a timeout interval is set.

thx

@lburgazzoli
Copy link
Collaborator

There 'CompletableFuturereturned by the kv clientget` method has an option to set a timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants