]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
r9183: Need to poll both send and receive completions from the CQ on the passive...
authorSean Hefty <sean.hefty@intel.com>
Tue, 29 Aug 2006 22:03:47 +0000 (22:03 +0000)
committerSean Hefty <sean.hefty@intel.com>
Tue, 29 Aug 2006 22:03:47 +0000 (22:03 +0000)
of the connection.  Without polling the sends first, we exit before receiving
all replies.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/cmatose.c

index 602439c956b930bf810013367914da4723769ec4..ca464020ac2f7513b2cb50f2eaa5e011e1c470d2 100644 (file)
@@ -498,6 +498,11 @@ static int run_server(void)
                                goto out;
                }
 
+               printf("completing sends\n");
+               ret = poll_cqs();
+               if (ret)
+                       goto out;
+
                printf("receiving data transfers\n");
                ret = poll_cqs();
                if (ret)