Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why zmq_proxy throw interrupt system call exception? #172

Open
nickhuangxinyu opened this issue Feb 25, 2021 · 0 comments
Open

why zmq_proxy throw interrupt system call exception? #172

nickhuangxinyu opened this issue Feb 25, 2021 · 0 comments

Comments

@nickhuangxinyu
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant