Hi,

Intermittently during stress testing, we are hitting this assertion
(IllegalStateException):

https://github.com/eclipse/jetty.project/blob/jetty-9.4.44.v20210927/jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java#L1152

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
_______________________________________________
jetty-users mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to