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 sa...@apache.org on 2006/02/24 10:34:07 UTC

svn commit: r380625 - /webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c

Author: samisa
Date: Fri Feb 24 01:34:02 2006
New Revision: 380625

URL: http://svn.apache.org/viewcvs?rev=380625&view=rev
Log:
Added fix to get the timeout working correct

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c?rev=380625&r1=380624&r2=380625&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c Fri Feb 24 01:34:02 2006
@@ -350,6 +350,14 @@
                 break;
             }
         }
+        
+        if (read < 0)
+        {
+            AXIS2_ERROR_SET((*env)->error, 
+                            AXIS2_ERROR_RESPONSE_TIMED_OUT, 
+                            AXIS2_FAILURE);
+            return -1;
+        }
         status_line = axis2_http_status_line_create(env, str_status_line);
         if(NULL == status_line)
         {