[Libwebsockets] lws_get_child()

Joel Winarske joel.winarske at gmail.com
Thu Mar 30 01:53:36 CEST 2017

Hi Andy I'm seeing something odd with connections.

In my http client setup code I have:

if (lws_get_child(wsi))
return 1;

My first incoming client POST works, the second fails as lws_get_child()
returns non-zero.

What will cause lws_get_child() to return non-zero, and how do I avoid it?

If I ignore this call, it will carry on, http client connects, data is
exchanged, then it get:

    lwsws[11963]: LWS_CALLBACK_RECEIVE_CLIENT_HTTP closed it
    lwsws[11963]: lws_remove_child_from_any_parent: failed to detach from

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20170329/82f30872/attachment.html>

More information about the Libwebsockets mailing list