From: markt Date: Fri, 30 Sep 2011 19:18:06 +0000 (+0000) Subject: Remove unused code. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2e1d978a43c30b2fce73e58e6fbe2799463f3cc0;p=tomcat7.0 Remove unused code. 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 --- diff --git a/java/org/apache/coyote/http11/Http11NioProcessor.java b/java/org/apache/coyote/http11/Http11NioProcessor.java index d89f90642..3678d5596 100644 --- a/java/org/apache/coyote/http11/Http11NioProcessor.java +++ b/java/org/apache/coyote/http11/Http11NioProcessor.java @@ -314,17 +314,6 @@ public class Http11NioProcessor extends AbstractHttp11Processor { 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();