Improved logging.

This commit is contained in:
Simone Bordet 2012-06-07 13:42:49 +02:00
parent 3f80ec2bc2
commit ec4b987b4d
1 changed files with 42 additions and 43 deletions

View File

@ -16,7 +16,6 @@ package org.eclipse.jetty.io.ssl;
import java.io.IOException; import java.io.IOException;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.concurrent.Executor; import java.util.concurrent.Executor;
import javax.net.ssl.SSLEngine; import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult; import javax.net.ssl.SSLEngineResult;
import javax.net.ssl.SSLEngineResult.HandshakeStatus; import javax.net.ssl.SSLEngineResult.HandshakeStatus;
@ -321,7 +320,7 @@ public class SslConnection extends AbstractAsyncConnection
@Override @Override
public synchronized int fill(ByteBuffer buffer) throws IOException public synchronized int fill(ByteBuffer buffer) throws IOException
{ {
LOG.debug("{} fill",SslConnection.this); LOG.debug("{} fill enter",SslConnection.this);
try try
{ {
// Do we already have some decrypted data? // Do we already have some decrypted data?
@ -463,14 +462,14 @@ public class SslConnection extends AbstractAsyncConnection
_bufferPool.release(_appIn); _bufferPool.release(_appIn);
_appIn=null; _appIn=null;
} }
LOG.debug("{} !fill",SslConnection.this); LOG.debug("{} fill exit",SslConnection.this);
} }
} }
@Override @Override
public synchronized int flush(ByteBuffer... appOuts) throws IOException public synchronized int flush(ByteBuffer... appOuts) throws IOException
{ {
LOG.debug("{} flush",SslConnection.this); LOG.debug("{} flush enter",SslConnection.this);
try try
{ {
if (_netWriting) if (_netWriting)
@ -557,7 +556,7 @@ public class SslConnection extends AbstractAsyncConnection
} }
finally finally
{ {
LOG.debug("{} !flush",SslConnection.this); LOG.debug("{} flush exit",SslConnection.this);
releaseNetOut(); releaseNetOut();
} }
} }