summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawa@redhat.com>2016-06-24 09:58:29 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-07-08 07:39:03 -0700
commit84e9fc2fb5fabf9d1e553a420854a306cdb8a168 (patch)
treeea476b703f4c9e92d07e8c770b4554f331ac5769 /rpc/rpc-transport
parentef08924ba7c568605d96af8b1f4ca50ede045204 (diff)
rpc/socket.c : Modify socket_poller code in case of ENODATA error code.
Problem: Polling failure errors are coming till volume is not come while SSL is enabled. Solution: To avoid the message update one condition in socket_poller code It will not exit from thread in case of received ENODATA from ssl_do function. Change-Id: Ia514e99b279b07b372ee950f4368ac0d9c702d82 BUG: 1349709 Signed-off-by: Mohit Agrawal <moagrawa@redhat.com> Reviewed-on: http://review.gluster.org/14786 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c2
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 24a8c8967ce..7229d0e3461 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -2503,7 +2503,7 @@ socket_poller (void *ctx)
"poll error on socket");
break;
}
- if (ret < 0) {
+ if (ret < 0 && errno != ENODATA) {
gf_log(this->name,GF_LOG_ERROR,
"error in polling loop");
break;