bring back comet timeout
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 22 Jan 2008 16:40:01 +0000 (16:40 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 22 Jan 2008 16:40:01 +0000 (16:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@614249 13f79535-47bb-0310-9956-ffa450edef68

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

index b1b0e93..36e059d 100644 (file)
@@ -889,6 +889,10 @@ public class Http11NioProcessor implements ActionHook {
                         NioEndpoint.KeyAttachment attach = (NioEndpoint.KeyAttachment) key.attachment();
                         if (attach != null)  {
                             attach.setComet(comet);
+                            if (comet) {
+                                Integer comettimeout = (Integer) request.getAttribute("org.apache.tomcat.comet.timeout");
+                                if (comettimeout != null) attach.setTimeout(comettimeout.longValue());
+                            }
                         }
                     }
                 } catch (InterruptedIOException e) {