libwebsockets
libwebsockets copied to clipboard
Concurrent SSL Handshakes causes threads to stay busy for long time - resulting timeout
Upon establishing 1,000 concurrent WebSocket connections, the initial 400 connections are successfully established. However, due to a delay in the SSL handshake, the remaining WebSockets time out.
Steps to reproduce : This happens in even minimal-ws-server Make a concurrent connection to that server (min 500) - and keep adding clients
What do you think should happen about that?
Is there any way to create multiple context ?? After a threshold ?
You can create multiple contexts, for example just by creating multiple processes.
Each process will have its own event loop thread.