From 51063a35b5fa68b76154e685afa9c0b5dda74b29 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Tue, 29 Aug 2006 22:03:47 +0000 Subject: [PATCH] r9183: Need to poll both send and receive completions from the CQ on the passive side of the connection. Without polling the sends first, we exit before receiving all replies. Signed-off-by: Sean Hefty --- examples/cmatose.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/cmatose.c b/examples/cmatose.c index 602439c9..ca464020 100644 --- a/examples/cmatose.c +++ b/examples/cmatose.c @@ -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) -- 2.46.0