summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kparthas@redhat.com>2014-01-02 20:11:19 +0530
committerAnand Avati <avati@redhat.com>2014-01-14 01:04:27 -0800
commit7d89ec77763dc5076379753c736f7fce2bedd9ec (patch)
tree6ade7db12feeabcbb53ea382c798cf887aa63896 /rpc/rpc-transport
parent54bf0ba4698a2d46db3485cc12ae04dd90349570 (diff)
socket: propogate connect failure in socket_event_handler
This patch prevents spurious handling of pollin/pollout events on an 'un-connected' socket, when outgoing packets to its remote endpoint are 'dropped' using iptables(8) rules. For eg, iptables -I OUTPUT -p tcp --dport 24007 -j DROP Change-Id: I1d3f3259dc536adca32330bfb7566e0b9a521e3c BUG: 1048188 Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-on: http://review.gluster.org/6627 Reviewed-by: Anand Avati <avati@redhat.com> Tested-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index f9df4ac1d..c6b293be4 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -2195,7 +2195,7 @@ unlock:
rpc_transport_notify (this, event, this);
}
out:
- return 0;
+ return ret;
}