synapse-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r819454 - /synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerHandler.java
Date Mon, 28 Sep 2009 05:14:01 GMT
Author: asankha
Date: Mon Sep 28 05:14:01 2009
New Revision: 819454

URL: http://svn.apache.org/viewvc?rev=819454&view=rev
Log:
temporary fix as suggested by Daniel Moise for SYNAPSE-584

Modified:
    synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerHandler.java

Modified: synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerHandler.java
URL: http://svn.apache.org/viewvc/synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerHandler.java?rev=819454&r1=819453&r2=819454&view=diff
==============================================================================
--- synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerHandler.java
(original)
+++ synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ServerHandler.java
Mon Sep 28 05:14:01 2009
@@ -205,6 +205,11 @@
         HttpResponse response = conn.getHttpResponse();
         ContentOutputBuffer outBuf = (ContentOutputBuffer) context.getAttribute(RESPONSE_SOURCE_BUFFER);
 
+        if (outBuf == null) {
+            shutdownConnection(conn);   // temporary fix until HTTPCORE-208 is available
for SYNAPSE-584
+            return;
+        }
+
         try {
             int bytesWritten = outBuf.produceContent(encoder);
             if (metrics != null && bytesWritten > 0) {



Mime
View raw message