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

network lruqueue deadlocks in zmq_term #26

Closed
steve-o opened this issue Dec 28, 2010 · 1 comment
Closed

network lruqueue deadlocks in zmq_term #26

steve-o opened this issue Dec 28, 2010 · 1 comment

Comments

@steve-o
Copy link

steve-o commented Dec 28, 2010

Split the lruqueue C code into two programs, one multi-client, one server, then the client hangs in zmq_term unless you modify the code to close each 0MQ socket before closing the thread, i.e.

--- lruqueue.c  2010-12-08 12:39:08.000000000 +0800
+++ client.c    2010-12-08 12:59:14.000000000 +0800
@@ -17,6 +17,8 @@
     char *reply = s_recv (client);
     printf ("Client: %s\n", reply);
     free (reply);
+
+    zmq_close (client);
     return (NULL);
 }
@hintjens
Copy link
Contributor

hintjens commented Mar 5, 2011

Fixed, thanks. A lot of examples didn't work with 2.1, they are all fixed now.

This issue was closed.
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

2 participants