[Libwebsockets] Problem of multiple persistent WebSocket connections
Zhang, Luis (Thin Client R&D)
xiaolu.zhang at hp.com
Mon Sep 18 03:12:35 CEST 2017
The platform is Debian 8.5 and I used libuv.
From: Andy Green [mailto:andy at warmcat.com]
Sent: Monday, September 18, 2017 9:11
To: Zhang, Luis (Thin Client R&D) <xiaolu.zhang at hp.com>; libwebsockets at ml.libwebsockets.org
Subject: Re: [Libwebsockets] Problem of multiple persistent WebSocket connections
On 09/18/2017 09:07 AM, Andy Green wrote:
> 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?
- what event loop? Default, using libuv / ev / event?
> There's no intention to reduce the max clients the server can serve,
> on the contrary...
>> Any thoughts? Thank you.
>> Best Regards,
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
More information about the Libwebsockets