james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vince...@apache.org
Subject svn commit: r161758 - james/server/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java
Date Mon, 18 Apr 2005 14:26:04 GMT
Author: vincenzo
Date: Mon Apr 18 07:26:03 2005
New Revision: 161758

URL: http://svn.apache.org/viewcvs?view=rev&rev=161758
Log:
Fixed a problem consisting in some NNTP clients (like Mozilla Firefox and others) hanging
when reading messages containing a message body. Reported as jira JAMES-311. 

Modified:
    james/server/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java

Modified: james/server/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java
URL: http://svn.apache.org/viewcvs/james/server/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java?view=diff&r1=161757&r2=161758
==============================================================================
--- james/server/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java (original)
+++ james/server/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java Mon Apr 18 07:26:03
2005
@@ -1045,7 +1045,7 @@
         if (article != null) {
             writer.flush();
             article.writeBody(new ExtraDotOutputStream(outs));
-            writeLoggedFlushedResponse(".");
+            writeLoggedFlushedResponse("\r\n.");
         }
     }
 
@@ -1181,7 +1181,8 @@
         if (article != null) {
             writer.flush();
             article.writeArticle(new ExtraDotOutputStream(outs));
-            writeLoggedFlushedResponse(".");
+            // see jira JAMES-311 for an explanation of the "\r\n"
+            writeLoggedFlushedResponse("\r\n.");
         }
     }
 
@@ -1348,7 +1349,7 @@
             }
         }
         if ( group != null ) {
-            //this.group = group;
+            // this.group = group;
 
             // Set the current article pointer.  If no
             // articles are in the group, the current article



---------------------------------------------------------------------
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