i came across problem zeromq in php seems work when used on command line, not in fpm process. did else observe behaviour? there easy solution? maybe matter of rights management or something? unfortunately there no error messages @ all.
the server started command line:
$context = new zmqcontext; $socket = new zmqsocket($context, zmq::socket_pull); $socket->bind('ipc:///tmp/test.sock'); while (true) echo $socket->recv(); another script located on local webserver (nginx + php-fpm):
$context = new zmqcontext; $socket = new zmqsocket($context, zmq::socket_push); $socket->connect('ipc:///tmp/test.sock'); $socket->send('test message'); if 1 executes script command line, message transferred zmq server without problems. if execute script through browser, nothing happens.
Comments
Post a Comment