easywsclient icon indicating copy to clipboard operation
easywsclient copied to clipboard

Timeout in Websocket::from_url

Open Henrik0x7F opened this issue 7 years ago • 1 comments

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?

Henrik0x7F avatar Jan 13 '18 10:01 Henrik0x7F

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

yanbint avatar Feb 19 '19 09:02 yanbint