The wrong sender was disconnected, should only be the sender holding the actual TCP connections.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@924776
13f79535-47bb-0310-9956-
ffa450edef68
*/
public void sendMessage(ChannelMessage message, Member[] destination) throws ChannelException {
MultiPointSender sender = getTransport();
- try {
- sender.sendMessage(destination,message);
- }catch (ChannelException x) {
- sender.disconnect();
- throw x;
- }
+ sender.sendMessage(destination,message);
}
try {
sender.sendMessage(destination, message);
sender.keepalive();
+ } catch (ChannelException x) {
+ sender.disconnect();
+ throw x;
} finally {
- if (!connected) disconnect();
returnSender(sender);
+ if (!connected) disconnect();
}
}
}