|
|
887953 |
From 74aaa257df25b70711bf962642ab2f8b3d063634 Mon Sep 17 00:00:00 2001
|
|
|
887953 |
From: Xavi Hernandez <xhernandez@redhat.com>
|
|
|
887953 |
Date: Thu, 13 Sep 2018 15:44:15 +0200
|
|
|
887953 |
Subject: [PATCH 374/385] socket: set 42 as default tpc-user-timeout
|
|
|
887953 |
|
|
|
887953 |
> Upstream: https://review.gluster.org/21170
|
|
|
887953 |
> BUG: 1628605
|
|
|
887953 |
> Change-Id: Ib8ad7c4ac6aac725b01a78f8c3d10cf4063d2ee6
|
|
|
887953 |
|
|
|
887953 |
The 'tcp-user-timeout' option is define in the 'socket' module, but it's
|
|
|
887953 |
configured in 'protocol/server' and 'protocol/client', which are the
|
|
|
887953 |
parents of the 'socket' module.
|
|
|
887953 |
|
|
|
887953 |
However, current options management logic only takes into consideration
|
|
|
887953 |
default values specified in the 'socket' module itself, ignoring values
|
|
|
887953 |
defined in the owner xlator.
|
|
|
887953 |
|
|
|
887953 |
This patch simply sets the default value of tcp-user-timeout in the
|
|
|
887953 |
'socket' module so that server and client use the expected value.
|
|
|
887953 |
|
|
|
887953 |
Change-Id: Ib8ad7c4ac6aac725b01a78f8c3d10cf4063d2ee6
|
|
|
887953 |
BUG: 1623874
|
|
|
887953 |
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
|
|
|
887953 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/150699
|
|
|
887953 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
887953 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
887953 |
---
|
|
|
887953 |
rpc/rpc-transport/socket/src/socket.c | 6 +++---
|
|
|
887953 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
887953 |
|
|
|
887953 |
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
|
|
|
887953 |
index b98efdc..243d49c 100644
|
|
|
887953 |
--- a/rpc/rpc-transport/socket/src/socket.c
|
|
|
887953 |
+++ b/rpc/rpc-transport/socket/src/socket.c
|
|
|
887953 |
@@ -3854,7 +3854,7 @@ reconfigure (rpc_transport_t *this, dict_t *options)
|
|
|
887953 |
int ret = 0;
|
|
|
887953 |
uint32_t backlog = 0;
|
|
|
887953 |
uint64_t windowsize = 0;
|
|
|
887953 |
- uint32_t timeout = 0;
|
|
|
887953 |
+ uint32_t timeout = 42;
|
|
|
887953 |
int keepaliveidle = GF_KEEPALIVE_TIME;
|
|
|
887953 |
int keepaliveintvl = GF_KEEPALIVE_INTERVAL;
|
|
|
887953 |
int keepalivecnt = GF_KEEPALIVE_COUNT;
|
|
|
887953 |
@@ -4083,7 +4083,7 @@ socket_init (rpc_transport_t *this)
|
|
|
887953 |
gf_boolean_t tmp_bool = 0;
|
|
|
887953 |
uint64_t windowsize = GF_DEFAULT_SOCKET_WINDOW_SIZE;
|
|
|
887953 |
char *optstr = NULL;
|
|
|
887953 |
- uint32_t timeout = 0;
|
|
|
887953 |
+ uint32_t timeout = 42;
|
|
|
887953 |
int keepaliveidle = GF_KEEPALIVE_TIME;
|
|
|
887953 |
int keepaliveintvl = GF_KEEPALIVE_INTERVAL;
|
|
|
887953 |
int keepalivecnt = GF_KEEPALIVE_COUNT;
|
|
|
887953 |
@@ -4623,7 +4623,7 @@ struct volume_options options[] = {
|
|
|
887953 |
},
|
|
|
887953 |
{ .key = {"transport.tcp-user-timeout"},
|
|
|
887953 |
.type = GF_OPTION_TYPE_INT,
|
|
|
887953 |
- .default_value = "0"
|
|
|
887953 |
+ .default_value = "42"
|
|
|
887953 |
},
|
|
|
887953 |
{ .key = {"transport.socket.nodelay"},
|
|
|
887953 |
.type = GF_OPTION_TYPE_BOOL,
|
|
|
887953 |
--
|
|
|
887953 |
1.8.3.1
|
|
|
887953 |
|