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

Timeout in Websocket::from_url #70

Open
Henrik0x7F opened this issue Jan 13, 2018 · 1 comment
Open

Timeout in Websocket::from_url #70

Henrik0x7F opened this issue Jan 13, 2018 · 1 comment

Comments

@Henrik0x7F
Copy link

When I connect to a valid address but with an invalid port from_url returns a nullptr, but when the address is wrong it's just blocking forever. Is there a way to add a timeout?

@yanbint
Copy link

yanbint commented Feb 19, 2019

I have this same timeout issue.
I use select() to add a timeout when connect() in from_url().

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

2 participants