Closed daniel-adlantic closed 8 years ago
Maybe you could use another socket type, such as PUSH which will block?
Other option is to use polling on the socket and see when it becomes writable. This should work for socket types like PUSH
No feedback.
This problem isn't unique to PHP... I'm running into the same problem with C++. This is a core issue with PUB/SUB, and even more difficult to work around with XPUB/XSUB
Hello,
I've run into the slow joiner syndrome, and it gave me a headache as it's a pain to debug. Current solutions seem to be either adding overhead (an extra connection to do you're own handshake / state update) or the more simple sleep for a bit and hope it was long enough.
The first seems to be a little excessive since all I want to do is connect and send some data:
Some ideas to fix this problem properly:
It could also be that I'm missing something, so I'm open to other fixes.