You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to zmq doc ZMQ_LINGER: "The value of 0 specifies no linger period. Pending messages shall be discarded immediately when the socket is closed with zmq_close()."
# cli script
$context = new \ZMQContext();
$pull = $context->getSocket(ZMQ::SOCKET_PULL);
$pull->bind('tcp://127.0.0.1:5555');
while (true) {
var_dump($pull->recv());
}
The magic is random msg delivery (like 1 of 5) while there is not (I guess) zmq_close() call inside fpm-script. And it delivers nothing after cli script rerun that is correct behaviour.
The text was updated successfully, but these errors were encountered:
According to zmq doc ZMQ_LINGER: "The value of 0 specifies no linger period. Pending messages shall be discarded immediately when the socket is closed with zmq_close()."
So here is my example:
The magic is random msg delivery (like 1 of 5) while there is not (I guess) zmq_close() call inside fpm-script. And it delivers nothing after cli script rerun that is correct behaviour.
The text was updated successfully, but these errors were encountered: