E
E
Evgeny Khlusov2019-01-11 13:34:05
Yii
Evgeny Khlusov, 2019-01-11 13:34:05

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

1 answer(s)
W
web-mechanic, 2019-01-11
@amfetamine

The first thing I would think about is the increasing number of persistent connections

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question