HI Filip,
I see the problem also and I like your proposed solution.
+1
peter
Am 27.04.2007 um 17:18 schrieb Filip Hanik - Dev Lists:
here is a patch that would solve it the way I proposed
Index: java/org/apache/catalina/tribes/transport/nio/
ParallelNioSender.java
===================================================================
--- java/org/apache/catalina/tribes/transport/nio/
ParallelNioSender.java (revision 533123)
+++ java/org/apache/catalina/tribes/transport/nio/
ParallelNioSender.java (working copy)
@@ -286,6 +286,15 @@
if ( sender.keepalive() ) {
nioSenders.remove(entry.getKey());
result = true;
+ } else {
+ try {
+ sender.read(null);
+ }catch ( IOException x ) {
+ sender.disconnect();
+ sender.reset();
+ nioSenders.remove(entry.getKey());
+ result = true;
+ }
}
}
return result;
Only because membership and connections have nothing to do with
each other :)
Also, no other way to detect a disconnect than to issue a read on
the channel.
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]