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/04/04 10:17:49 UTC

svn commit: r391244 - /webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c

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);