james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vince...@apache.org
Subject svn commit: r160428 - james/server/branches/branch_2_1_fcs/src/java/org/apache/james/nntpserver/NNTPHandler.java
Date Thu, 07 Apr 2005 18:46:59 GMT
Author: vincenzo
Date: Thu Apr  7 11:46:58 2005
New Revision: 160428

URL: http://svn.apache.org/viewcvs?view=rev&rev=160428
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/branches/branch_2_1_fcs/src/java/org/apache/james/nntpserver/NNTPHandler.java

Modified: james/server/branches/branch_2_1_fcs/src/java/org/apache/james/nntpserver/NNTPHandler.java
URL: http://svn.apache.org/viewcvs/james/server/branches/branch_2_1_fcs/src/java/org/apache/james/nntpserver/NNTPHandler.java?view=diff&r1=160427&r2=160428
==============================================================================
--- james/server/branches/branch_2_1_fcs/src/java/org/apache/james/nntpserver/NNTPHandler.java
(original)
+++ james/server/branches/branch_2_1_fcs/src/java/org/apache/james/nntpserver/NNTPHandler.java
Thu Apr  7 11:46:58 2005
@@ -1053,7 +1053,7 @@
         if (article != null) {
             writer.flush();
             article.writeBody(new ExtraDotOutputStream(outs));
-            writeLoggedFlushedResponse(".");
+            writeLoggedFlushedResponse("\r\n.");
         }
     }
 
@@ -1189,7 +1189,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.");
         }
     }
 



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