Author: markt
Date: Tue Oct  8 19:18:04 2013
New Revision: 1530397

URL: http://svn.apache.org/r1530397
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55638
Fix the corruption of large WebSocket messages when using the NIO connector.
Modified:
    
tomcat/trunk/java/org/apache/coyote/http11/upgrade/NioServletOutputStream.java

Modified: 
tomcat/trunk/java/org/apache/coyote/http11/upgrade/NioServletOutputStream.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/upgrade/NioServletOutputStream.java?rev=1530397&r1=1530396&r2=1530397&view=diff
==============================================================================
--- 
tomcat/trunk/java/org/apache/coyote/http11/upgrade/NioServletOutputStream.java 
(original)
+++ 
tomcat/trunk/java/org/apache/coyote/http11/upgrade/NioServletOutputStream.java 
Tue Oct  8 19:18:04 2013
@@ -59,6 +59,7 @@ public class NioServletOutputStream exte
 
             writtenThisLoop = doWriteInternal(block, b, offset, writeThisLoop);
             count += writtenThisLoop;
+            offset += writtenThisLoop;
             leftToWrite -= writtenThisLoop;
 
             if (writtenThisLoop < writeThisLoop) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to