ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r391244 - /webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c
Date Tue, 04 Apr 2006 08:17:49 GMT
Author: samisa
Date: Tue Apr  4 01:17:47 2006
New Revision: 391244

URL: http://svn.apache.org/viewcvs?rev=391244&view=rev
Log:
Improved the polling mechanism

Modified:
    webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c

Modified: webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c?rev=391244&r1=391243&r2=391244&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c Tue Apr  4 01:17:47
2006
@@ -149,7 +149,7 @@
     printf("\n");
     while (!AXIS2_CALLBACK_GET_COMPLETE(callback, &env))
     {
-        if (count++ > 10)
+        if (count++ > 100)
             break;
         AXIS2_USLEEP(200);            
     }
@@ -158,7 +158,8 @@
     {
         soap_envelope = AXIS2_CALLBACK_GET_ENVELOPE(callback, &env);
         AXIS2_USLEEP(200);            
-    } while (!soap_envelope);
+        count++;
+    } while (!soap_envelope && count < 200);
     
     if (soap_envelope)
         ret_node = AXIS2_SOAP_ENVELOPE_GET_BASE_NODE(soap_envelope, &env);



Mime
View raw message