Temporary logging for SSL truncation attacks.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3239 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
7df4156ed7
commit
f166c40a6d
|
@ -683,7 +683,10 @@ public class SslSelectChannelEndPoint extends SelectChannelEndPoint
|
|||
int filled=super.fill(_inNIOBuffer);
|
||||
if (_debug) __log.debug(_session+" unwrap filled "+filled);
|
||||
if (filled < 0)
|
||||
{
|
||||
__log.info("{} fill() returned -1, _inNIOBuffer {}", _socket, _inNIOBuffer); // TODO: remove this
|
||||
remoteClosed = true;
|
||||
}
|
||||
// break the loop if no progress is made (we have read everything there is to read)
|
||||
if (filled<=0)
|
||||
break;
|
||||
|
@ -729,9 +732,13 @@ public class SslSelectChannelEndPoint extends SelectChannelEndPoint
|
|||
freeOutBuffer();
|
||||
throw new EofException();
|
||||
}
|
||||
__log.info("{} uwrap() returning false, _inNIOBuffer {}", _socket, _inNIOBuffer); // TODO: remove this
|
||||
return false;
|
||||
}
|
||||
|
||||
if (remoteClosed)
|
||||
__log.info("{} uwrapping, _inNIOBuffer {}", _socket, _inNIOBuffer); // TODO: remove this
|
||||
|
||||
// We have some in data, so try to unwrap it.
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue