You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by gd...@apache.org on 2009/07/28 04:50:50 UTC

svn commit: r798374 - /webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java

Author: gdaniels
Date: Tue Jul 28 02:50:50 2009
New Revision: 798374

URL: http://svn.apache.org/viewvc?rev=798374&view=rev
Log:
Now that we're correctly re-using an HTTPClient as recommended by the docs, we *really* need to be careful about calling releaseConnection().  Ensure this happens in the HTTP server tests by calling mepClient.complete().

Modified:
    webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java

Modified: webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java?rev=798374&r1=798373&r2=798374&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java (original)
+++ webservices/commons/trunk/modules/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/axis2/client/AxisTestClient.java Tue Jul 28 02:50:50 2009
@@ -119,6 +119,7 @@
         }
         mepClient.addMessageContext(mc);
         mepClient.execute(block);
+        mepClient.complete(mc);
         return resultMessageLabel == null ? null : mepClient.getMessageContext(resultMessageLabel);
     }