tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1293017 - /tomcat/trunk/java/org/apache/catalina/websocket/WsOutbound.java
Date Thu, 23 Feb 2012 23:06:27 GMT
Author: markt
Date: Thu Feb 23 23:06:27 2012
New Revision: 1293017

URL: http://svn.apache.org/viewvc?rev=1293017&view=rev
Log:
Doh

Modified:
    tomcat/trunk/java/org/apache/catalina/websocket/WsOutbound.java

Modified: tomcat/trunk/java/org/apache/catalina/websocket/WsOutbound.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/websocket/WsOutbound.java?rev=1293017&r1=1293016&r2=1293017&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/websocket/WsOutbound.java (original)
+++ tomcat/trunk/java/org/apache/catalina/websocket/WsOutbound.java Thu Feb 23 23:06:27 2012
@@ -292,7 +292,7 @@ public class WsOutbound {
         if (data == null) {
             upgradeOutbound.write(0);
         } else {
-            upgradeOutbound.write(data.limit());
+            upgradeOutbound.write(data.limit() - data.position());
             upgradeOutbound.write(data.array(), data.position(),
                     data.limit() - data.position());
         }



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


Mime
View raw message