diff options
author | shishir gowda <shishirng@gluster.com> | 2011-12-15 15:13:14 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-12-19 08:53:58 -0800 |
commit | 3853f4ccaf1f0446af9a3f523008c64834a63df6 (patch) | |
tree | 82f019404423fbf6089d6338253cb63606c03b40 /rpc/rpc-transport | |
parent | a6098362f93e321ce25424d2f95cc1d61783f6b9 (diff) | |
download | glusterfs-3853f4ccaf1f0446af9a3f523008c64834a63df6.tar.gz glusterfs-3853f4ccaf1f0446af9a3f523008c64834a63df6.tar.xz glusterfs-3853f4ccaf1f0446af9a3f523008c64834a63df6.zip |
rpc-transport/socket: Donot fail reconnect if error is ENOENT
A AF_UNIX family socket should retry connect if error is ENOENT.
Signed-off-by: shishir gowda <shishirng@gluster.com>
Change-Id: I23b1da12faadc8043d370862bfe29c0c5c223364
BUG: 767932
Reviewed-on: http://review.gluster.com/795
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Amar Tumballi <amar@gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r-- | 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 0fd031d891..3b2d05c450 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -2104,7 +2104,7 @@ socket_connect (rpc_transport_t *this, int port) ret = connect (priv->sock, SA (&this->peerinfo.sockaddr), this->peerinfo.sockaddr_len); - if (ret == -1 && errno != EINPROGRESS) { + if (ret == -1 && ((errno != EINPROGRESS) && (errno != ENOENT))) { gf_log (this->name, GF_LOG_ERROR, "connection attempt failed (%s)", strerror (errno)); |