Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 54730 invoked from network); 4 Apr 2006 08:18:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 08:18:12 -0000 Received: (qmail 2448 invoked by uid 500); 4 Apr 2006 08:18:12 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 2377 invoked by uid 500); 4 Apr 2006 08:18:11 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 2366 invoked by uid 500); 4 Apr 2006 08:18:11 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 2362 invoked by uid 99); 4 Apr 2006 08:18:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 01:18:11 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Apr 2006 01:18:11 -0700 Received: (qmail 54614 invoked by uid 65534); 4 Apr 2006 08:17:50 -0000 Message-ID: <20060404081750.54607.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r391244 - /webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c Date: Tue, 04 Apr 2006 08:17:49 -0000 To: axis2-cvs@ws.apache.org From: samisa@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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);