Ratchet icon indicating copy to clipboard operation
Ratchet copied to clipboard

Slow connections that block event loop

Open ahmeteminkocal opened this issue 3 years ago • 0 comments

Some high-ping client connections block event loop on the server, which slows down the whole server. I create an event loop that is running for each client, sending some events each x seconds to each client. And if any of those clients have a slow connection, the $client->send() function waits until the client receives the message. So it slows down the whole server. I have parallels and zts enabled php cli, are there any ways I can multithread sending messages?

ahmeteminkocal avatar May 23 '22 16:05 ahmeteminkocal