php - How to identify if WebSocket connection limit is reached?
Get the solution ↓↓↓I am using "Ratchet Websockets" using PHP for an application with a mobile App on Ubuntu 14.04 with Apache2. I have been facing an issue with the connection limit. I had faced this a couple of times now. The connection broke sometime and I manually have to restart thesupervisor.conf
and then it works fine. On a busy day, if the connection broke at my night time, it would be a mess. I would like to know if there's any connection limit behind it, if there is, I would like to know how to increase it?
I made some changes in the server settings and updated the file limit.
Here are a few details I been able to get out of my server:
sudo sysctl -p
fs.file-max = 2097152
ulimit -n -S
500000
ulimit -n -H
500000
I still need to know how to test/verify if the WebSocket connection limit is increased beyond1024
the default limit. I don't know how to test it.
Please help.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: your system folder path does not appear to be set correctly. please open the following file and correct this: index.php
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.