From b0f54a49164a1c618b9e207349bd96705b44dfa6 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 10 Aug 2010 01:57:45 +0000 Subject: cli: Introduce timeouts for command response and connection Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1262 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1262 --- cli/src/cli3_1-cops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/src/cli3_1-cops.c') diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c index de3aa6ed2..d9dd3f6fe 100644 --- a/cli/src/cli3_1-cops.c +++ b/cli/src/cli3_1-cops.c @@ -138,6 +138,8 @@ gf_cli3_1_list_friends_cbk (struct rpc_req *req, struct iovec *iov, gf_log ("cli", GF_LOG_NORMAL, "Received resp to list: %d", rsp.op_ret); + ret = rsp.op_ret; + if (!rsp.op_ret) { if (!rsp.friends.friends_len) { -- cgit