Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: How should I handle websocket_client reconnects?

$
0
0
Here's a simple example of what I'm trying to do:

http://pastebin.com/7NfSwFwE

Basically reconnect if the connect fails. This triggers a debug assertion: m_state == CREATED

I'm guessing I'm not allowed to start a new task here? If so, why, and how should I trigger a reconnect?

Viewing all articles
Browse latest Browse all 4845

Trending Articles