Author: fhanik
Date: Fri Apr 13 09:51:54 2007
New Revision: 528551
URL: http://svn.apache.org/viewvc?view=rev&rev=528551
Log:
prevent a timeout when a servlet write is issued, but not flushed
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
URL:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java?view=diff&rev=528551&r1=528550&r2=528551
==============================================================================
---
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
(original)
+++
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/InternalNioOutputBuffer.java
Fri Apr 13 09:51:54 2007
@@ -609,6 +609,8 @@
}
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
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]