Author: markt Date: Sun Mar 24 21:33:27 2013 New Revision: 1460468 URL: http://svn.apache.org/r1460468 Log: Once we have all of a partial message send it on if we can. Don't buffer it unless we have to as we have no idea if/when the next part of the message might arrive.
Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsFrameBase.java Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsFrameBase.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsFrameBase.java?rev=1460468&r1=1460467&r2=1460468&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/websocket/WsFrameBase.java (original) +++ tomcat/trunk/java/org/apache/tomcat/websocket/WsFrameBase.java Sun Mar 24 21:33:27 2013 @@ -402,6 +402,13 @@ public abstract class WsFrameBase { // End of frame and possible message as well. if (continuationExpected) { + // If partial messages are supported, send what we have + // managed to decode + if (usePartial()) { + messageBufferText.flip(); + sendMessageText(false); + messageBufferText.clear(); + } messageBufferBinary.compact(); newFrame(); // Process next frame --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org