From 3854e0d8e5f603e75767d79ea0495cea1974c693 Mon Sep 17 00:00:00 2001 From: moagrawa Date: Mon, 7 Nov 2016 10:24:16 +0530 Subject: [PATCH 147/157] rpc/socket.c : Modify socket_poller code in case of ENODATA error code. Problem: Continuous warning message(ENODATA) are coming in socket_rwv while SSL is enabled. Solution: To avoid the warning message update one condition in socket_poller loop code before break from loop in case of error returned by poll functions. > BUG: 1386450 > Change-Id: I19b3a92d4c3ba380738379f5679c1c354f0ab9b1 > Signed-off-by: Mohit Agrawal > Reviewed-on: http://review.gluster.org/15677 > Smoke: Gluster Build System > NetBSD-regression: NetBSD Build System > CentOS-regression: Gluster Build System > Reviewed-by: Raghavendra G > (cherry picked from commit ec64ce2e1684003f4e7a20d4372e414bfbddb6fb) BUG: 1385525 Change-Id: Id6161bdc30a0d979479776a8524851f5cbf99f09 Signed-off-by: moagrawa Reviewed-on: https://code.engineering.redhat.com/gerrit/89220 Reviewed-by: Atin Mukherjee --- rpc/rpc-transport/socket/src/socket.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index 4244883..ae551dc 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -2544,7 +2544,7 @@ socket_poller (void *ctx) "poll error on socket"); break; } - if (ret < 0 && errno != ENODATA) { + if (ret < 0) { GF_LOG_OCCASIONALLY (poll_err_cnt, this->name, GF_LOG_ERROR, "socket_poller %s failed (%s)", -- 1.7.1