jetty-9 improve SslConnection toString

This commit is contained in:
Greg Wilkins 2012-09-11 08:04:33 +10:00
parent 73ebe89019
commit 26f5ffc459
1 changed files with 9 additions and 1 deletions

View File

@ -222,9 +222,17 @@ public class SslConnection extends AbstractConnection
@Override
public String toString()
{
return String.format("SslConnection@%x{%s} -> %s",
ByteBuffer b = _encryptedInput;
int ei=b==null?-1:b.remaining();
b = _encryptedOutput;
int eo=b==null?-1:b.remaining();
b = _decryptedInput;
int di=b==null?-1:b.remaining();
return String.format("SslConnection@%x{%s,eio=%d/%d,di=%d} -> %s",
hashCode(),
_sslEngine.getHandshakeStatus(),
ei,eo,di,
_decryptedEndPoint.getConnection());
}