You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/07/26 08:16:21 UTC

svn commit: r559703 - in /webservices/axis2/trunk/c: samples/client/echo/echo.c samples/server/echo/echo.c samples/server/math/services.xml src/core/transport/tcp/receiver/tcp_svr_thread.c

Author: dinesh
Date: Wed Jul 25 23:16:20 2007
New Revision: 559703

URL: http://svn.apache.org/viewvc?view=rev&rev=559703
Log:
commented out axutil_free_thread_env , to overcome a segfault

Modified:
    webservices/axis2/trunk/c/samples/client/echo/echo.c
    webservices/axis2/trunk/c/samples/server/echo/echo.c
    webservices/axis2/trunk/c/samples/server/math/services.xml
    webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_svr_thread.c

Modified: webservices/axis2/trunk/c/samples/client/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=diff&rev=559703&r1=559702&r2=559703
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Wed Jul 25 23:16:20 2007
@@ -163,11 +163,15 @@
     axiom_element_t * text_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *om_str = NULL;
-
+    int i = 0;
     ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/services/echo", "ns1");
     echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
-    text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
-    axiom_element_set_text(text_om_ele, env, "Hello World!", text_om_node);
+
+    for (i = 0; i < 1000; i++)
+    {
+        text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
+        axiom_element_set_text(text_om_ele, env, "Hello World!", text_om_node);
+    }
 
     om_str = axiom_node_to_string(echo_om_node, env);
     if (om_str)

Modified: webservices/axis2/trunk/c/samples/server/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/echo/echo.c?view=diff&rev=559703&r1=559702&r2=559703
==============================================================================
--- webservices/axis2/trunk/c/samples/server/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/server/echo/echo.c Wed Jul 25 23:16:20 2007
@@ -87,15 +87,18 @@
     axiom_node_t* text_om_node = NULL;
     axiom_element_t * text_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
-
+    int i = 0;
     ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples", "ns1");
-
     echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
-
     text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
-
     axiom_element_set_text(text_om_ele, env, text, text_om_node);
-
+    
+    for (i = 0; i < 3000; i++)
+    {
+        text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
+        axiom_element_set_text(text_om_ele, env, text, text_om_node);
+    }
+        
     return echo_om_node;
 }
 

Modified: webservices/axis2/trunk/c/samples/server/math/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/math/services.xml?view=diff&rev=559703&r1=559702&r2=559703
==============================================================================
--- webservices/axis2/trunk/c/samples/server/math/services.xml (original)
+++ webservices/axis2/trunk/c/samples/server/math/services.xml Wed Jul 25 23:16:20 2007
@@ -1,24 +1,18 @@
 <service name="math">
     <parameter name="ServiceClass" locked="xsd:false">math</parameter>
-
    <description>
         This is a testing service, named 'math' to test multiple operations in the same service
    </description>
-
     <operation name="add">
             <!--messageReceiver class="axis2_receivers" /-->
     </operation>
-
     <operation name="sub">
             <!--messageReceiver class="axis2_receivers" /-->
     </operation>
-
     <operation name="mul">
             <!--messageReceiver class="axis2_receivers" /-->
     </operation>
-
     <operation name="div">
             <!--messageReceiver class="axis2_receivers" /-->
     </operation>
-
 </service>

Modified: webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_svr_thread.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_svr_thread.c?view=diff&rev=559703&r1=559702&r2=559703
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_svr_thread.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/tcp/receiver/tcp_svr_thread.c Wed Jul 25 23:16:20 2007
@@ -294,7 +294,9 @@
 
     if (thread_env)
     {
-        axutil_free_thread_env(thread_env);
+        /* There is a persistant problem: Uncomment this after fix
+         * the issue */
+       /*  axutil_free_thread_env(thread_env); */
         thread_env = NULL;
     }
 #ifdef AXIS2_SVR_MULTI_THREADED



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