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 ds...@apache.org on 2006/05/05 23:43:02 UTC
svn commit: r400182 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
Author: dsosnoski
Date: Fri May 5 14:43:01 2006
New Revision: 400182
URL: http://svn.apache.org/viewcvs?rev=400182&view=rev
Log:
Apply user timeout on HTTP connections to server
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java?rev=400182&r1=400181&r2=400182&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/SOAPOverHTTPSender.java Fri May 5 14:43:01 2006
@@ -85,6 +85,12 @@
HTTPConstants.HEADER_EXPECT_100_Continue);
}
}
+
+ // set timeout in client
+ long timeout = msgContext.getOptions().getTimeOutInMilliSeconds();
+ if (timeout != 0) {
+ httpClient.getParams().setSoTimeout((int)timeout);
+ }
/*
* main excecution takes place..