V
V
Vladimir Mukovoz2020-03-03 20:58:12
cloudflare
Vladimir Mukovoz, 2020-03-03 20:58:12

How to find out the reason why pong is not getting a response from the client by the socket.io server?

Good evening.

The essence of the problem is that when the online increase is +5-7k, laravel-echo-server does not receive a response from the pong browser (although it sent it) within 5 seconds, as a result of which it cuts the connection by timeout.
As soon as the server wrote that the timeout , the
5e5e99b63216f531329316.jpeg

Browser stopped receiving messages from it.
5e5e99aba1d61919616245.jpeg

Moreover, until this moment, the messages were received cheerfully and without problems, that is, the browser receives messages from the server quickly, but the delay is taken from the browser to the server from somewhere.
Moreover, nodejs is not even proxied through nginx, no matter how much nginx has been sharpened without it, it turns out to work better, but nodejs is proxied through Cloudflare.

In total, I think either this queue of pong responses from the browser is coming out in Nodejs and as a result does not have time to be processed on time, or Cloudflare for some reason delays the pong response from the browser to the server. But I still don’t understand how to debug all this and identify the culprit, I would be grateful if someone tells me how this can be identified and will give at least some impetus.

In any case, thank you all for your time.

New information:
Today I decided to check and connected from one computer directly without Cloudflare, the sockets were interrupted with cloudflare almost synchronously, that is, the reason is not in it.
And new skins
5e6008376c944813001388.jpeg5e60083fa0294485314755.jpeg5e600845c83b3329784818.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question