On 30.11.2012 18:39, Roberto De Ioris wrote:
Thinking about a way to allow users developing emperor plugins faster,
i came to the conclusion that exposing a zeromq api would be the best choice.
So i committed the emperor_zeromq plugin:
https://github.com/unbit/uwsgi/blob/master/plugins/emperor_zeromq/emperor_zeromq.c
the compile fails here with zeromq 3.2.2-1 since the sygnature of
zmq_recv is:
int zmq_recv (void *socket, void *buf, size_t len, int flags)
i.e. it requires len. Looking at the api docs, I changed that line to
use zmq_*msg*_recv like this:
zmq_msg_recv(&msg[i], ues->data, ZMQ_NOBLOCK);
and it did work fine.
This is a change from the 2.2 api to the 3.2 one I guess.
--
дамјан
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi