[Libwebsockets] client never connects if lws_service timeout is zero

Andy Green andy at warmcat.com
Mon Oct 10 14:42:06 CEST 2016

On Mon, 2016-10-10 at 10:30 +0100, Rob Agar wrote:
> On 08/10/16 01:07, Andy Green wrote:
> > What's the legit use-case for asking to enter a poll wait with 0
> > timeout from the user code?  If there is one then maybe something
> > to
> > do, but eg libuv loop ignores it, external poll waits externally...
> My use case is a C++ WebRTC application which uses libwebsockets
> (wrapped up in a C++ library) to do signals communication.  The
> application event loop has control. On each application tick I just
> need to call lws_service to do websocket operations,       without
> waiting if nothing is pending.  Preventing busywaiting is taken care
> of by the application.
> Sound legit? ;)

Yes I guess so.  Aren't you lucky lws is so flexible.

Can interested parties try this patch?



> ________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://libwebsockets.org/mailman/listinfo/libwebsockets

More information about the Libwebsockets mailing list