Remove unused code.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 30 Sep 2011 19:18:06 +0000 (19:18 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 30 Sep 2011 19:18:06 +0000 (19:18 +0000)
The code to close comet connections has changed over the years and this
bit no longer does anything.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1177784 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11NioProcessor.java

index d89f906..3678d55 100644 (file)
@@ -314,17 +314,6 @@ public class Http11NioProcessor extends AbstractHttp11Processor<NioChannel> {
 
             comet = false;
             cometClose = true;
-            SelectionKey key = socket.getSocket().getIOChannel().keyFor(socket.getSocket().getPoller().getSelector());
-            if ( key != null ) {
-                NioEndpoint.KeyAttachment attach = (NioEndpoint.KeyAttachment) key.attachment();
-                if ( attach!=null && attach.getComet()) {
-                    //if this is a comet connection
-                    //then execute the connection closure at the next selector loop
-                    //request.getAttributes().remove("org.apache.tomcat.comet.timeout");
-                    //attach.setTimeout(5000); //force a cleanup in 5 seconds
-                    //attach.setError(true); //this has caused concurrency errors
-                }
-            }
 
             try {
                 outputBuffer.endRequest();