diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-11-02 01:27:56 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-02 01:58:54 -0700 |
commit | 33ce70b6fb7f3e268bcb166477c1e79e19b48a11 (patch) | |
tree | 56f0fe701fe17df366722ecd3d80429f72e3cc65 /rpc/rpc-transport | |
parent | de001e8659d78dd16ba8515228c70fd2986e56df (diff) |
socket: avoid check on lowlat for enabling nodelay
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2040 (Using 'du' and 'ls' command, it got slow performance)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2040
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index bf825049d..e5272f0d3 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; |