You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by hi...@apache.org on 2009/07/23 10:29:51 UTC

svn commit: r796976 - /synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java

Author: hiranya
Date: Thu Jul 23 08:29:50 2009
New Revision: 796976

URL: http://svn.apache.org/viewvc?rev=796976&view=rev
Log:
When the failed event occurs in the SessionRequestCallback we can retireve the underlying IOException and its message which explains the actual cause of the error. Added that to the error message generated in Synapse.

Modified:
    synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java

Modified: synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java?rev=796976&r1=796975&r2=796976&view=diff
==============================================================================
--- synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java (original)
+++ synapse/trunk/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java Thu Jul 23 08:29:50 2009
@@ -632,8 +632,9 @@
             }
 
             public void failed(SessionRequest request) {
-                handleError(request, NhttpConstants.CONNECTION_FAILED,
-                    "Connection refused or failed for : " + request.getRemoteAddress());
+                handleError(request, NhttpConstants.CONNECTION_FAILED, 
+                    "Connection refused or failed for : " + request.getRemoteAddress() + ", " +
+                    "IO Exception occured : " + request.getException().getMessage());
             }
 
             public void timeout(SessionRequest request) {