abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r628401 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/AbderaServlet.java
Date Sun, 17 Feb 2008 01:17:49 GMT
Author: dandiep
Date: Sat Feb 16 17:17:48 2008
New Revision: 628401

URL: http://svn.apache.org/viewvc?rev=628401&view=rev
Log:
Oops. Now this should actually work.

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/AbderaServlet.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/AbderaServlet.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/AbderaServlet.java?rev=628401&r1=628400&r2=628401&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/AbderaServlet.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/AbderaServlet.java
Sat Feb 16 17:17:48 2008
@@ -138,19 +138,19 @@
     Throwable t, 
     HttpServletResponse response) 
       throws IOException {
-    boolean reset = false;
+    boolean writeResponse = true;
     if (response.isCommitted()) {
       try {
         response.reset();
-        reset = true;
       } catch (Throwable resetT) {
+        writeResponse = false;
         log.error("Could not reset connection to write an error message.", resetT);
       }
     }
     if (t != null) log.error(message, t);
     else log.error(message);
     
-    if (reset) {
+    if (writeResponse) {
       response.setStatus(500);
       StreamWriter sw = 
         getAbdera().newStreamWriter()



Mime
View raw message