You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2007/03/27 07:28:17 UTC

svn commit: r522760 - /webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/AttachmentTest.java

Author: amilas
Date: Mon Mar 26 22:28:16 2007
New Revision: 522760

URL: http://svn.apache.org/viewvc?view=rev&rev=522760
Log:
set a time limit to AttachemetTest to fail it if the network is down with out hanging there.

Modified:
    webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/AttachmentTest.java

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/AttachmentTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/AttachmentTest.java?view=diff&rev=522760&r1=522759&r2=522760
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/AttachmentTest.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/AttachmentTest.java Mon Mar 26 22:28:16 2007
@@ -345,8 +345,9 @@
 		HttpClient client = new HttpClient();
 		GetMethod method = new GetMethod(url);
 
+	        client.getHttpConnectionManager().getParams().setConnectionTimeout(3000);		
 		method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, 
-				new DefaultHttpMethodRetryHandler(3, false));
+				new DefaultHttpMethodRetryHandler(1, false));
 
 		try {
 			int statusCode = client.executeMethod(method);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org