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

Created Unassigned: If Webserver is down exception not thrown in connect call [338]

$
0
0
Hi Steve,
a) As mentioned, am opening a fresh issue. The following code crashes my app on Windows 7 ( where casablanca is loaded as a dll ) if the webserver is not online

auto current_context = task_continuation_context::use_default();
create_task([=]()
{
try
{
//Connect to the server and send local client information
m_ws_client->connect(serverAdd).then([=](task<void> conn_task) {

conn_task.get();
m_is_connected = true;
});
}
catch (websocket_exception& wex)
{
m_is_connected = false;
}
}, current_context);

b) Is there a method available in websocket_client is still active?

c) Any websocket sample projects available, all the projects in the distro now, viz BingRequest / Blackjack etc use http.

Regards

Vivek


Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>