axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damitha Kumarage (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-1261) When several fire and forget sends are done using svc client it segfaults
Date Tue, 09 Sep 2008 07:53:44 GMT
When several fire and forget sends are done using svc client it segfaults
-------------------------------------------------------------------------

                 Key: AXIS2C-1261
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1261
             Project: Axis2-C
          Issue Type: Bug
            Reporter: Damitha Kumarage


$Subject happens because in operation client the sending is done using separate thread. Before
the first request completes it could happen that the second request free the operation client
that is used to send the first message.

When operation client execute is called from services clients fire and forget function it
set send blokcing to true. When I fixed this to false the above segfaut and the problem causing
it dissapear. This is because no more thread are spawned and sends are done sequentially.

Following the diff of my simple fix. If there is no objection I will commit the change

Index: src/core/clientapi/svc_client.c
===================================================================
--- src/core/clientapi/svc_client.c (revision 693316)
+++ src/core/clientapi/svc_client.c (working copy)
@@ -663,7 +663,7 @@
     }

     axis2_op_client_add_out_msg_ctx(svc_client->op_client, env, msg_ctx);
-    axis2_op_client_execute(svc_client->op_client, env, AXIS2_FALSE);
+    axis2_op_client_execute(svc_client->op_client, env, AXIS2_TRUE);
     axis2_svc_client_set_http_info(svc_client, env, msg_ctx);
     svc_client->auth_failed = axis2_msg_ctx_get_auth_failed(msg_ctx, env);
     svc_client->required_auth_is_http =

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message