411545 - SslConnection.DecryptedEndpoint.fill() sometimes misses a few network bytes

+ Adding continuation in this rare SSL case to allow the remaining bytes
  to be read properly.
This commit is contained in:
Joakim Erdfelt 2013-06-24 14:56:15 -07:00
parent 298b46a96f
commit 1f21c96f6c
1 changed files with 7 additions and 0 deletions

View File

@ -618,6 +618,13 @@ public class SslConnection extends AbstractConnection
}
else
{
if (_encryptedInput.hasRemaining())
{
// if there are more encrypted bytes,
// then we need to unwrap more, we don't
// care if net_filled is zero
continue;
}
// we need to wait for more net data
return 0;
}