[Libwebsockets] Long delay when establishing connection

Heaton Xing heaton209.x at gmail.com
Wed Jun 3 05:00:19 CEST 2020


Hello everyone~

I use libwebsocket in an embedded system.The main program is an infinite
loop, it will process an external interrupt every 0.5ms, and call
lws_service in the interrupt service program.Implemented websocket-client
on the PC side, and found that it takes 2000ms to complete the connection.
Is it because the libwebsocket server is waiting for the connection in a
blocking manner?

Is there a similar non-blocking way to create a websocket
connection?Because our current system is a wireless communication system,
if the remote device is connected for a long time, the wireless
transmission will be interrupted.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200603/0b2ee3b1/attachment.htm>


More information about the Libwebsockets mailing list