summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/socket/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.c')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index d3167fe0b..9e85c3ca9 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -1309,10 +1309,16 @@ __socket_read_frag (rpc_transport_t *this)
ret = __socket_read_request (this);
} else if (priv->incoming.msg_type == REPLY) {
ret = __socket_read_reply (this);
+ } else if (priv->incoming.msg_type == GF_UNIVERSAL_ANSWER) {
+ gf_log ("rpc", GF_LOG_ERROR,
+ "older version of protocol/process trying to "
+ "connect from %s. use newer verison on that node",
+ this->peerinfo.identifier);
} else {
gf_log ("rpc", GF_LOG_ERROR,
- "wrong MSG-TYPE (%d) received",
- priv->incoming.msg_type);
+ "wrong MSG-TYPE (%d) received from %s",
+ priv->incoming.msg_type,
+ this->peerinfo.identifier);
ret = -1;
}