Hi,
Intermittently during stress testing, we are hitting this assertion (IllegalStateException):
I modified this line of code to include additional information:
case BUFFER_OVERFLOW: {
if (!flushed)
return result = false;
// It's possible that SSLSession.packetBufferSize has been expanded
int newSize = getPacketBufferSize();
if (packetBufferSize < newSize)
{
releaseEncryptedOutputBuffer();
continue;
}
throw new IllegalStateException(" Unexpected wrap result " + wrap + " " + packetBufferSize + " " + newSize + " " + _encryptedOutput.toString());
The augmented exception message looks like this:
SEVERE: java.lang.IllegalStateException: Unexpected wrap result BUFFER_OVERFLOW 16709 16709 java.nio.HeapByteBuffer[pos=17408 lim=17408 cap=17408]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.flush(SslConnection.java:1154)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422)
at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:277)
at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:381)
Has anyone seen this before? Is the idea that this is a bug in the underlying library as packetBufferSize should have increased after the BUFFER_OVERFLOW event?
Thanks,
Josh