From: fhanik Date: Fri, 13 Apr 2007 16:51:54 +0000 (+0000) Subject: prevent a timeout when a servlet write is issued, but not flushed X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=cb39703ad36728299a5008e2ac2a7b28add02afd;p=tomcat7.0 prevent a timeout when a servlet write is issued, but not flushed git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@528551 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java index c37fc61f0..c4f4d29a1 100644 --- a/java/org/apache/coyote/http11/InternalNioOutputBuffer.java +++ b/java/org/apache/coyote/http11/InternalNioOutputBuffer.java @@ -609,6 +609,8 @@ public class InternalNioOutputBuffer } socket.getBufHandler().getWriteBuffer().put(buf, offset, length); total += length; + NioEndpoint.KeyAttachment ka = (NioEndpoint.KeyAttachment)socket.getAttachment(false); + if ( ka!= null ) ka.access();//prevent timeouts for just doing client writes }