From 876bda819321a2632bdd30989030746f17e38770 Mon Sep 17 00:00:00 2001 From: damitha Date: Mon, 5 Jul 2010 03:24:31 +0000 Subject: In http 1.0 Keep-Alive false case transport sender is freed prematurely at http_transport_sender. Because of this, although soap message comes through the wire it cannot be processed. git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@960429 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/http/sender/http_transport_sender.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/transport/http/sender/http_transport_sender.c b/src/core/transport/http/sender/http_transport_sender.c index 3ef55b0..6dc43fa 100644 --- a/src/core/transport/http/sender/http_transport_sender.c +++ b/src/core/transport/http/sender/http_transport_sender.c @@ -777,12 +777,14 @@ axis2_http_transport_sender_write_message( status = AXIS2_HTTP_SENDER_SEND(sender, env, msg_ctx, out, url, soap_action); #endif - AXIS2_HTTP_SENDER_FREE(sender, env); - sender = NULL; /* if the send was not successful, do not process any response */ if(status != AXIS2_SUCCESS) + { + AXIS2_HTTP_SENDER_FREE(sender, env); + sender = NULL; return status; + } op = axis2_msg_ctx_get_op(msg_ctx, env); if(op) @@ -793,6 +795,8 @@ axis2_http_transport_sender_write_message( if(axutil_strcmp(mep, AXIS2_MEP_URI_OUT_ONLY) == 0 || axutil_strcmp(mep, AXIS2_MEP_URI_ROBUST_OUT_ONLY) == 0 || axutil_strcmp(mep, AXIS2_MEP_URI_IN_ONLY) == 0) { + AXIS2_HTTP_SENDER_FREE(sender, env); + sender = NULL; return status; } else @@ -811,6 +815,9 @@ axis2_http_transport_sender_write_message( } } + AXIS2_HTTP_SENDER_FREE(sender, env); + sender = NULL; + return status; } -- cgit v1.1-32-gdbae