Ensure that when the connector is stopped that a Comet END event is processed to...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 20 Sep 2011 17:08:41 +0000 (17:08 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 20 Sep 2011 17:08:41 +0000 (17:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1173256 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioEndpoint.java

index 6a2ae91..e5e59f9 100644 (file)
@@ -1160,7 +1160,7 @@ public class NioEndpoint extends AbstractEndpoint {
             boolean result = true;
             try {
                 if ( close ) {
-                    cancelledKey(sk, SocketStatus.STOP, false);
+                    cancelledKey(sk, SocketStatus.STOP, attachment.comet);
                 } else if ( sk.isValid() && attachment != null ) {
                     attachment.access();//make sure we don't time out valid sockets
                     sk.attach(attachment);//cant remember why this is here