Answer the question
In order to leave comments, you need to log in
How to solve the problem with a long websocket response?
Hello!
The Yii2 project uses https://github.com/consik/yii2-websocket
The
socket is started by a service on the server.
After about an hour of work, the connection to the socket becomes extremely long, from 30 seconds or more, and only grows over time until the service is restarted. After reboot - everything is connected instantly.
Google did not give much answers, there are no errors in the console, maybe someone faced a similar problem and knows the solution?
Thanks in advance for your replies! :-)
Answer the question
In order to leave comments, you need to log in
The first thing I would think about is the increasing number of persistent connections
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question