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

Server Connection Timeout Config #12

Open
Ubunfu opened this issue Jan 23, 2021 · 4 comments
Open

Server Connection Timeout Config #12

Ubunfu opened this issue Jan 23, 2021 · 4 comments

Comments

@Ubunfu
Copy link

Ubunfu commented Jan 23, 2021

Is there a way to configure a connection timeout to the server? Since setting the constructor's timeout parameter doesn't seem to take care of this, I'm thinking it's probably specifically a command response timeout? If there's a connection issue to the server, the request seems to hang there for a while. If this isn't currently a feature, I think it'd be really nice to have.

@Taraman17
Copy link
Contributor

Sometimes, when something fails on authentication, the library is not giving an answer at all.
I had that problem when encountering Issue #13. Also when the Server responds in a wrong way (Issue #9).

I worked around this by setting a Timeout with setTimeout and cancelling that when authentication passes.

@menix1337
Copy link

Sometimes, when something fails on authentication, the library is not giving an answer at all. I had that problem when encountering Issue #13. Also when the Server responds in a wrong way (Issue #9).

I worked around this by setting a Timeout with setTimeout and cancelling that when authentication passes.

Would you be able to show an example with the setTimeout part?

@Taraman17
Copy link
Contributor

@Taraman17
Copy link
Contributor

I think, this can be closed as well...

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

No branches or pull requests

3 participants