Patchwork [BUG:2040] socket: avoid check on lowlat for enabling nodelay

login
register
Submitter Vijay Bellur
Date 2010-11-02 06:57:56
Message ID <20101102065756.GA5057@dev.gluster.com>
Download mbox | patch
Permalink /patch/5612/
State Accepted
Headers show

Comments

Vijay Bellur - 2010-11-02 06:57:56
Signed-off-by: Vijay Bellur <vijay@gluster.com>
---
 rpc/rpc-transport/socket/src/socket.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

Patch

diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index bf82504..e5272f0 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -1987,7 +1987,7 @@  socket_connect (rpc_transport_t *this, int port)
                 }
 
 
-                if (priv->nodelay && priv->lowlat) {
+                if (priv->nodelay) {
                         ret = __socket_nodelay (priv->sock);
                         if (ret == -1) {
                                 gf_log (this->name, GF_LOG_ERROR,
@@ -2575,11 +2575,6 @@  socket_init (rpc_transport_t *this)
 
         optstr = NULL;
 
-        if (dict_get_str (this->options, "transport.socket.lowlat",
-                          &optstr) == 0) {
-                priv->lowlat = 1;
-        }
-
         /* Enable Keep-alive by default. */
         priv->keepalive = 1;
         priv->keepaliveintvl = 2;