prevent a timeout when a servlet write is issued, but not flushed
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 13 Apr 2007 16:51:54 +0000 (16:51 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 13 Apr 2007 16:51:54 +0000 (16:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@528551 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/InternalNioOutputBuffer.java

index c37fc61..c4f4d29 100644 (file)
@@ -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
     }