Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2011-05-23 12:02:56 -0400
committerSimone Bordet2011-05-23 12:02:56 -0400
commitf166c40a6d8b3975f110ec64e14c634b5841f9e7 (patch)
tree7a77fe18e0895dd28efc9d65cae94a6f8c339f53
parent7df4156ed7885304d9ef1280c0ce432c429e148d (diff)
downloadorg.eclipse.jetty.project-f166c40a6d8b3975f110ec64e14c634b5841f9e7.tar.gz
org.eclipse.jetty.project-f166c40a6d8b3975f110ec64e14c634b5841f9e7.tar.xz
org.eclipse.jetty.project-f166c40a6d8b3975f110ec64e14c634b5841f9e7.zip
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
-rw-r--r--jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java
index eab33db960..5eb30172a1 100644
--- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java
+++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java
@@ -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
{

Back to the top