From f166c40a6d8b3975f110ec64e14c634b5841f9e7 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Mon, 23 May 2011 16:02:56 +0000 Subject: [PATCH] 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 --- .../org/eclipse/jetty/io/nio/SslSelectChannelEndPoint.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 eab33db9600..5eb30172a10 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 {