james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joac...@apache.org
Subject svn commit: r482783 - /james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java
Date Tue, 05 Dec 2006 21:12:59 GMT
Author: joachim
Date: Tue Dec  5 13:12:58 2006
New Revision: 482783

URL: http://svn.apache.org/viewvc?view=rev&rev=482783
Log:
added missing input streamdump

Modified:
    james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java

Modified: james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java?view=diff&rev=482783&r1=482782&r2=482783
==============================================================================
--- james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java (original)
+++ james/server/trunk/src/java/org/apache/james/core/AbstractJamesHandler.java Tue Dec  5
13:12:58 2006
@@ -28,6 +28,7 @@
 import org.apache.avalon.framework.service.ServiceException;
 import org.apache.avalon.framework.service.ServiceManager;
 import org.apache.avalon.framework.service.Serviceable;
+import org.apache.james.imapserver.debug.CopyInputStream;
 import org.apache.james.imapserver.debug.SplitOutputStream;
 import org.apache.james.services.DNSServer;
 import org.apache.james.util.CRLFTerminatedReader;
@@ -151,12 +152,15 @@
             // An ASCII encoding can be used because all transmissions other
             // that those in the message body command are guaranteed
             // to be ASCII
-            inReader = new CRLFTerminatedReader(in, "ASCII");
+            
             outs = new BufferedOutputStream(socket.getOutputStream(), 1024);
             // enable tcp dump for debug
             if (tcplogprefix != null) {
                 outs = new SplitOutputStream(outs, new FileOutputStream(tcplogprefix+"out"));
+                in = new CopyInputStream(in, new FileOutputStream(tcplogprefix+"in"));
             }
+            inReader = new CRLFTerminatedReader(in, "ASCII");
+            
             out = new InternetPrintWriter(outs, true);
         } catch (RuntimeException e) {
             StringBuffer exceptionBuffer = 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message