[Libwebsockets] Problem of multiple persistent WebSocket connections

Andy Green andy at warmcat.com
Mon Sep 18 03:07:53 CEST 2017



On 09/18/2017 08:51 AM, Zhang, Luis (Thin Client R&D) wrote:
> I’m working on developing a WebSocket Server that supports for multiple 
> persistent WebSocket connections. Our goal is supporting for 100K 
> connections concurrently. As mentioned in https://libwebsockets.org/ 
> that per thread can support 250K connections. So I think that there is 
> no problem for supporting 100K persistent WebSocket connections. And I 
> verified it with v2.0.0, it works well.
> 
> But, when I upgraded the libwebsockets lib to v2.1, the server cannot 
> accepted so many connections. It only can accepted about 40K 
> connections. When about 40K connections were established, I cannot 
> establish websocket connection any more. I also test it with v2.2 and 
> v2.3, I got the same result.
> 
> The test environment of all test case are same, just the version of 
> libwesocket lib are different.

  - what is the platform?

  - what *exactly* happens when you "cannot establish websocket 
connection any more"?  Logs?

There's no intention to reduce the max clients the server can serve, on 
the contrary...

-Andy

> Any thoughts? Thank you.
> 
> Best Regards,
> 
> Luis
> 
> 
> 
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> https://libwebsockets.org/mailman/listinfo/libwebsockets
> 



More information about the Libwebsockets mailing list