zeromq4-x icon indicating copy to clipboard operation
zeromq4-x copied to clipboard

why zmq_proxy throw interrupt system call exception?

Open nickhuangxinyu opened this issue 3 years ago • 0 comments

I want to use multi-sender and multi-recver mode.

I choose XSUB-XPUB because multi bind address problem.

i start a proxy thread like this:

void proxy() {
  zmq::context_t context(1);
  zmq::socket_t sub(context, ZMQ_XSUB);
  sub.bind("ipc://data_sender");
  zmq::socket_t pub(context, ZMQ_XPUB);
  pub.bind("ipc://data_recver");
  zmq::proxy(sub, pub, NULL);
}

int main() {
  thread t(&proxy);
  t.join();
}

but i catch a "interrupt sysmtem call" exception in proxy function.

i have handled this error in socket send and recv.

but why it happened in proxy, and how can i handle this?

nickhuangxinyu avatar Feb 25 '21 02:02 nickhuangxinyu