SSLEngine BUFFER_UNDERFLOW after handshaking is complete
843811May 10 2008 — edited May 12 2008Hi,
I am having some issues with SSL Handshaking and I have given the details below.
I am using Jdk version 1.5.0_6 in Sun Solaris
After SSLEngine has returned the Status = OK and HandshakeStatus = FINISHED calling unwrap() again why is the handshakestatus = NOT_HANDSHAKING and status = BUFFER_UNDERFLOW
Even though my iNetBuffer has data inNetBuffer: java.nio.DirectByteBuffer[pos=37 lim=512 cap=16665] and
The appBuffer: java.nio.DirectByteBuffer[pos=0 lim=33330 cap=33330] has enough capacity.
Why did the SSLEngine not copy the data into the app buffer?
Because of this I have data that is read from the client and it is not getting processed as it is not copied to my app buffer
Regards,
Jana