Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tiagospem's avatar

Soketi hosted on Forge limiting SSL connections

Hi, I set up a websocket server using the Soketi package, followed these instructions in laravel blog: deploying-soketi-to-laravel-forge, set up a subdomain, nginx proxy, and lets encrypt SSL certificate, and everything worked well, both in local environment and in production using wss protocol.

In order to test the efficiency and limit of connections I used the artillery.io library, in the tests without a certificate (wss://) on port 6001, I got thousands of simultaneous connections and the result was great.

Testing the connection limit using wss protocol on ports 6002/443 the maximum connection limit was between 350~450 and clients showed errors

Pusher error: cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection

I've searched everywhere and I can't find a solution to solve this problem, the problem is that on the production server it forces a secure connection, and in this case, if the connection limit exceeds the numbers obtained in the tests, errors start to appear.

0 likes
2 replies
kayex's avatar

Ever get this resolved? I'm seeing a similar issue.

Please or to participate in this conversation.