tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45282] NioReceiver doesn't close cleanly, leaving sockets in CLOSE_WAIT indefinitely.
Date Wed, 01 Oct 2008 16:25:00 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45282





--- Comment #3 from Filip Hanik <fhanik@apache.org>  2008-10-01 09:24:59 PST ---
I believe a patch could look something like

Index: org/apache/catalina/tribes/transport/nio/NioReceiver.java
===================================================================
--- org/apache/catalina/tribes/transport/nio/NioReceiver.java   (revision
695909)
+++ org/apache/catalina/tribes/transport/nio/NioReceiver.java   (working copy)
@@ -377,6 +377,7 @@
                 log.warn("Unable to cleanup on selector close.",ignore);
             }
         }catch ( ClosedSelectorException ignore){}
+        try {selector.selectNow();}catch (Throwable ignore){}
         selector.close();
     }



and all we do, is issue a selectNow statement after we have cancelled the keys

best
Filip


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message