Ratchet
Ratchet copied to clipboard
Slow connections that block event loop
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?