[Libwebsockets] lws server that needs to do a client GET

Chropin Hu chropinhu at gmail.com
Wed Jul 25 08:44:59 CEST 2018

I think, it dependent on your requirments.
One context can serve a lot of client, but If the websocket server do a lot
of data transfer,
for example dash server, may be you need a multi-thread enabled server,
you can reference to

On Wed, Jul 25, 2018 at 12:13 PM, Steve Calfee <stevecalfee at gmail.com>

> Hi,
> My webserver needs to do client activity (my server wants to start
> several client GETs (like after getting a POST connection). Do I need
> to create another context for each client?
> lws_client_connect_info contains a pointer to
> struct lws_context *context;    /**< lws context to create connection in */
> I tried just using my server context and the client access seems to
> work, but is it the proper way?
> It seems like not, would using only one context work?
> What do I do special running the contexts if I have 3 clients running
> and one http server using running lws_service?
> Thanks, Steve
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> https://libwebsockets.org/mailman/listinfo/libwebsockets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20180725/e8192324/attachment-0002.html>

More information about the Libwebsockets mailing list