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

Make DirectStreamAPIImpl.getMessage request use the configured timeout #729

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SalvaChiLlo
Copy link

I was getting weird timeouts when using the KV even though I was setting really high timeouts (20s or so), it turns out that the get implementation for the KV didn't pass any timeout, so the default one was being used (If I'm not mistaken it is 1s).

I tried to use this._request, which I believe is better suited to avoid this kind of problem in the future, instead of this.nc.request, but I was getting weird errors that I don't really understand, so I just added the timeout.

I mentioned that this._request would be really helpful as it would allow for setting the timeout in a centralized manner. Plus, the fact that it implements some retry logic would be very very helpful for in some cases if I could simply pass some options from the client library to control this.

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

Successfully merging this pull request may close these issues.

1 participant