neloe / ngx_zmq

An upstream ZeroMQ module for nginx
BSD 2-Clause "Simplified" License
22 stars 4 forks source link

ZMQ 4.x not success for pub-sub #5

Open kfpanda opened 8 years ago

kfpanda commented 8 years ago

ZMQ 4.x not success for pub-sub

jamesmarlowe commented 8 years ago

unlikely to be fixed

kfpanda commented 8 years ago

modify:conn_pool.c add head

include "zmq.h"

In init_pool function modify:: zmq_connect(c->m_sock, cp->m_endpt); TO: if(cp->m_stype == ZMQ_REQ) zmq_connect(c->m_sock, cp->m_endpt); else zmq_bind(c->m_sock, cp->m_endpt);

In ngx_http_zmq_module.c Replace:ZMQ_NOBLOCK To:ZMQ_DONTWAIT

last build.

jamesmarlowe commented 8 years ago

Do the mentioned patches fix your problems?

kfpanda commented 8 years ago

yes. The REQ PUSH PUB . i test success for ZMQ 4.1.3.