From: fhanik Date: Tue, 22 Jan 2008 16:40:01 +0000 (+0000) Subject: bring back comet timeout X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7036ed0f027d9473e6826781330ccd47f765e35a;p=tomcat7.0 bring back comet timeout git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@614249 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11NioProcessor.java b/java/org/apache/coyote/http11/Http11NioProcessor.java index b1b0e939b..36e059d5f 100644 --- a/java/org/apache/coyote/http11/Http11NioProcessor.java +++ b/java/org/apache/coyote/http11/Http11NioProcessor.java @@ -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) {