You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2008/06/21 11:48:27 UTC

svn commit: r670171 - in /webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples: rm_echo_single_1_0_large_sequence/rm_echo_single.c rm_ping_1_0_large_sequence/rm_ping_1_0.c

Author: damitha
Date: Sat Jun 21 02:48:26 2008
New Revision: 670171

URL: http://svn.apache.org/viewvc?rev=670171&view=rev
Log:
Updating samples

Modified:
    webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_echo_single_1_0_large_sequence/rm_echo_single.c
    webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_ping_1_0_large_sequence/rm_ping_1_0.c

Modified: webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_echo_single_1_0_large_sequence/rm_echo_single.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_echo_single_1_0_large_sequence/rm_echo_single.c?rev=670171&r1=670170&r2=670171&view=diff
==============================================================================
--- webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_echo_single_1_0_large_sequence/rm_echo_single.c (original)
+++ webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_echo_single_1_0_large_sequence/rm_echo_single.c Sat Jun 21 02:48:26 2008
@@ -29,7 +29,7 @@
 #include <axis2_options.h>
 #include <ctype.h>
 
-#define SANDESHA2_MAX_COUNT 8
+#define SANDESHA2_MAX_COUNT 4
 
 static void 
 usage(
@@ -203,10 +203,15 @@
     {
         printf("\necho client two way single channel invoke FAILED!\n");
     }
+
     AXIS2_SLEEP(SANDESHA2_MAX_COUNT);
     AXIS2_FREE(env->allocator, seq_key);
+
     if(offered_seq_id)
+    {
         AXIS2_FREE(env->allocator, offered_seq_id);
+    }
+
     if (svc_client)
     {
         axis2_svc_client_free(svc_client, env);

Modified: webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_ping_1_0_large_sequence/rm_ping_1_0.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_ping_1_0_large_sequence/rm_ping_1_0.c?rev=670171&r1=670170&r2=670171&view=diff
==============================================================================
--- webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_ping_1_0_large_sequence/rm_ping_1_0.c (original)
+++ webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/samples/rm_ping_1_0_large_sequence/rm_ping_1_0.c Sat Jun 21 02:48:26 2008
@@ -23,7 +23,7 @@
 #include <sandesha2_constants.h>
 #include <ctype.h>
 
-#define SANDESHA2_SLEEP 8
+#define SANDESHA2_SLEEP 4
 
 axiom_node_t *
 build_om_programatically(
@@ -150,8 +150,10 @@
     payload = build_om_programatically(env, "ping100", seq_key);
     status = axis2_svc_client_send_robust(svc_client, env, payload);
     if(status)
+    {
         printf("\nping client invoke SUCCESSFUL!\n");
-    sleep(64); 
+    }
+
      /** Wait till callback is complete. Simply keep the parent thread running
        until our on_complete or on_error is invoked */
 



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org