dhbaird / easywsclient

A short and sweet WebSocket client for C++
MIT License
751 stars 204 forks source link

Timeout in Websocket::from_url #70

Open Henrik0x7F opened 6 years ago

Henrik0x7F commented 6 years ago

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 commented 5 years ago

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