From: remm Date: Thu, 17 Aug 2006 12:00:04 +0000 (+0000) Subject: - Update the other connector. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f26de19b5bc365cf2caf9219016df1212231e701;p=tomcat7.0 - Update the other connector. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@432215 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11NioProcessor.java b/java/org/apache/coyote/http11/Http11NioProcessor.java index 96d94a226..32626b21c 100644 --- a/java/org/apache/coyote/http11/Http11NioProcessor.java +++ b/java/org/apache/coyote/http11/Http11NioProcessor.java @@ -47,9 +47,8 @@ import org.apache.tomcat.util.http.FastHttpDateFormat; import org.apache.tomcat.util.http.MimeHeaders; import org.apache.tomcat.util.net.NioChannel; import org.apache.tomcat.util.net.NioEndpoint; -import org.apache.tomcat.util.net.NioEndpoint.Handler; -import org.apache.tomcat.util.net.NioEndpoint.Handler.SocketState; import org.apache.tomcat.util.net.SSLSupport; +import org.apache.tomcat.util.net.NioEndpoint.Handler.SocketState; import org.apache.tomcat.util.res.StringManager; @@ -748,9 +747,6 @@ public class Http11NioProcessor implements ActionHook { try { rp.setStage(org.apache.coyote.Constants.STAGE_SERVICE); error = !adapter.event(request, response, error); - if (request.getAttribute("org.apache.tomcat.comet") == null) { - comet = false; - } SelectionKey key = socket.getIOChannel().keyFor(socket.getPoller().getSelector()); if ( key != null ) { NioEndpoint.KeyAttachment attach = (NioEndpoint.KeyAttachment) key.attachment(); @@ -892,9 +888,6 @@ public class Http11NioProcessor implements ActionHook { statusDropsConnection(response.getStatus()); } // Comet support - if (request.getAttribute("org.apache.tomcat.comet") != null) { - comet = true; - } SelectionKey key = socket.getIOChannel().keyFor(socket.getPoller().getSelector()); if (key != null) { NioEndpoint.KeyAttachment attach = (NioEndpoint.KeyAttachment) key.attachment(); @@ -1195,6 +1188,11 @@ public class Http11NioProcessor implements ActionHook { InternalNioInputBuffer internalBuffer = (InternalNioInputBuffer) request.getInputBuffer(); internalBuffer.addActiveFilter(savedBody); + + } else if (actionCode == ActionCode.ACTION_COMET_BEGIN) { + comet = true; + } else if (actionCode == ActionCode.ACTION_COMET_END) { + comet = false; } }