Skip to content

Commit

Permalink
Made test case for issue #346
Browse files Browse the repository at this point in the history
  • Loading branch information
hintjens committed Mar 22, 2012
1 parent 5c496ff commit 2a85ee4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 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;
}

0 comments on commit 2a85ee4

Please sign in to comment.