Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made test case for issue #346

  • Loading branch information...
commit 2a85ee4f5f585d7865ac9764f0e059452835fcc2 1 parent 5c496ff
@hintjens hintjens authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 346/issue.c
View
20 346/issue.c
@@ -0,0 +1,20 @@
+#include <zmq.h>
+#include <assert.h>
+
+int main (int argc, char * argv[])
+{
+ void *ctx, *s1;
+ int rc;
+
+ ctx = zmq_init (1);
+ s1 = zmq_socket (ctx, ZMQ_REP);
+ rc = zmq_bind (s1, "tcp://*:5557");
+ zmq_close (s1);
+
+ rc = zmq_recv (s1, "hello", 5, 0);
+ assert (rc == -1);
+
+ zmq_term(ctx);
+ return 0;
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.