Author: markt
Date: Fri Sep 30 19:18:06 2011
New Revision: 1177784
URL: http://svn.apache.org/viewvc?rev=1177784&view=rev
Log:
Remove unused code.
The code to close comet connections has changed over the years and this
bit no longer does anything.
Modified:
tomcat/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java
Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java?rev=1177784&r1=1177783&r2=1177784&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java
(original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java Fri Sep
30 19:18:06 2011
@@ -314,17 +314,6 @@ public class Http11NioProcessor extends
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();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]