[Libwebsockets] Cancel a pending connection

Guillaume Denry guillaume.denry at gmail.com
Thu Nov 14 12:16:59 CET 2019


I'm using lws_client_connect_via_info().

Sometimes, the websocket server I want to join is not reachable, and the
connection process can takes many seconds to get to the

What I would like to achieve is to abort immediately the pending connection
process when a certain event occurs in my program.

Is there any recommended way to do that?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20191114/923baf0d/attachment.htm>

More information about the Libwebsockets mailing list