Author: sagara
Date: Wed Jun 27 11:41:22 2012
New Revision: 1354438

URL: http://svn.apache.org/viewvc?rev=1354438&view=rev
Log:
Applying  patch for AXIS2-3818.

Modified:
    
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java

Modified: 
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?rev=1354438&r1=1354437&r2=1354438&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
 Wed Jun 27 11:41:22 2012
@@ -173,21 +173,13 @@ public class CommonsHTTPTransportSender 
                 format.setMimeBoundary((String) mimeBoundaryProperty);
             }
 
-             // set the timeout properties
-            Parameter soTimeoutParam = 
transportOut.getParameter(HTTPConstants.SO_TIMEOUT);
-            Parameter connTimeoutParam = 
transportOut.getParameter(HTTPConstants.CONNECTION_TIMEOUT);
-
             // set the property values only if they are not set by the user 
explicitly
-            if ((soTimeoutParam != null) &&
-                    (msgContext.getProperty(HTTPConstants.SO_TIMEOUT) == 
null)) {
-                msgContext.setProperty(HTTPConstants.SO_TIMEOUT,
-                        new Integer((String) soTimeoutParam.getValue()));
+            if (msgContext.getProperty(HTTPConstants.SO_TIMEOUT) == null) {
+                msgContext.setProperty(HTTPConstants.SO_TIMEOUT, soTimeout);
             }
 
-            if ((connTimeoutParam != null) &&
-                    (msgContext.getProperty(HTTPConstants.CONNECTION_TIMEOUT) 
== null)) {
-                msgContext.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 
-                        new Integer((String) connTimeoutParam.getValue()));
+            if (msgContext.getProperty(HTTPConstants.CONNECTION_TIMEOUT) == 
null) {
+                msgContext.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 
connectionTimeout);
             }
 
             //if a parameter has set been set, we will omit the SOAP action 
for SOAP 1.2


Reply via email to