Hi,
while stress testing an application that uses SSLEngine to encrypt and decrypt data I get a Status.BUFFER_UNDERFLOW without any obvious reason.
At the time when the underflow occurs on the server, several thousand client-server roundtrips over a keep-alive TCP connection, passed without problems.
Buffers before sslEngine.unwrap(inNetBuf, inAppBuf):
inNetBuf = java.nio.HeapByteBuffer[pos=0 lim=3760 cap=16665]
outAppBuf = java.nio.HeapByteBuffer[pos=0 lim=16660 cap=16660]
Buffers after sslEngine.unwrap(inNetBuf, inAppBuf):
inNetBuf = java.nio.HeapByteBuffer[pos=0 lim=3760 cap=16665]
outAppBuf = java.nio.HeapByteBuffer[pos=0 lim=16660 cap=16660]
SSLEngineResult of the unwrap operation:
Status = BUFFER_UNDERFLOW HandshakeStatus = NOT_HANDSHAKING
bytesConsumed = 0 bytesProduced = 0
Any hints what may be going wrong?
--
Cheers,
Alex