Author: markt Date: Tue Jul 9 20:21:35 2013 New Revision: 1501530 URL: http://svn.apache.org/r1501530 Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55221 Shorten message and make it more useful.
Modified: tomcat/trunk/java/org/apache/tomcat/websocket/AsyncChannelWrapperSecure.java tomcat/trunk/java/org/apache/tomcat/websocket/LocalStrings.properties Modified: tomcat/trunk/java/org/apache/tomcat/websocket/AsyncChannelWrapperSecure.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/AsyncChannelWrapperSecure.java?rev=1501530&r1=1501529&r2=1501530&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/websocket/AsyncChannelWrapperSecure.java (original) +++ tomcat/trunk/java/org/apache/tomcat/websocket/AsyncChannelWrapperSecure.java Tue Jul 9 20:21:35 2013 @@ -296,6 +296,8 @@ public class AsyncChannelWrapperSecure i // store all of the data throw new IOException(sm.getString( "asyncChannelWrapperSecure.readOverflow", + Integer.valueOf( + socketReadBuffer.remaining()), Integer.valueOf(dest.limit()), Integer.valueOf(dest.position()))); } else { Modified: tomcat/trunk/java/org/apache/tomcat/websocket/LocalStrings.properties URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/LocalStrings.properties?rev=1501530&r1=1501529&r2=1501530&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/websocket/LocalStrings.properties (original) +++ tomcat/trunk/java/org/apache/tomcat/websocket/LocalStrings.properties Tue Jul 9 20:21:35 2013 @@ -17,7 +17,7 @@ asyncChannelWrapperSecure.closeFail=Fail asyncChannelWrapperSecure.concurrentRead=Concurrent read operations are not permitted asyncChannelWrapperSecure.concurrentWrite=Concurrent write operations are not permitted asyncChannelWrapperSecure.eof=Unexpected end of stream -asyncChannelWrapperSecure.readOverflow=Unable to complete read due to destination buffer overflow. Destination is [{0}] bytes in size and currently contains [{1}] bytes. +asyncChannelWrapperSecure.readOverflow=Buffer overflow unwrapping [{0}] bytes into a [{1}] byte buffer that already contained [{2}] bytes. asyncChannelWrapperSecure.statusUnwrap=Unexpected Status of SSLEngineResult after an unwrap() operation asyncChannelWrapperSecure.statusWrap=Unexpected Status of SSLEngineResult after a wrap() operation asyncChannelWrapperSecure.tooBig=The result [{0}] is too big to be expressed as an Integer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org