path: root/rpc/rpc-transport/socket/src/socket.h
diff options
authorRajesh <>2011-07-19 15:57:30 +0530
committerAnand Avati <>2011-07-25 09:25:25 -0700
commit73eca3be5c5ccc71bbad934338c1ef58ed37c483 (patch)
tree39758ab32ba0781b17a64f2f8f10c1b5051c4197 /rpc/rpc-transport/socket/src/socket.h
parentd35e17152720a074c15f54f5c3b8a400e456b19e (diff)
rpc-transport/socket: avoid logging socket read fails
An option, was added in glusterd. This can also be added to any translator which uses socket.c. A gf_boolean_t flag(read_fail_log) is added in socket_private_t. Using this, logging of socket read failures can be controlled. The options is set to 'off' in glusterd.vol by default. Change-Id: I85cf4afc1f534f5f51018449d5d84baef18fce23 BUG: 3156 Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.h b/rpc/rpc-transport/socket/src/socket.h
index 4acecab2a..c52026cc8 100644
--- a/rpc/rpc-transport/socket/src/socket.h
+++ b/rpc/rpc-transport/socket/src/socket.h
@@ -193,6 +193,7 @@ typedef struct {
int keepaliveidle;
int keepaliveintvl;
uint32_t backlog;
+ gf_boolean_t read_fail_log;
} socket_private_t;