axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r382354 - in /webservices/axis2/trunk/c/modules/core/transport/http: http_transport_utils.c receiver/simple_http_svr_conn.c
Date Thu, 02 Mar 2006 11:39:19 GMT
Author: sahan
Date: Thu Mar  2 03:39:09 2006
New Revision: 382354

URL: http://svn.apache.org/viewcvs?rev=382354&view=rev
Log:
Removed socket closing to handle java clients. Need a good solution later

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
    webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?rev=382354&r1=382353&r2=382354&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Thu Mar 
2 03:39:09 2006
@@ -227,8 +227,8 @@
 	else if(NULL != strstr(content_type, AXIS2_HTTP_HEADER_ACCEPT_TEXT_XML))
 	{
 		is_soap11 = AXIS2_TRUE;
-		if(NULL != soap_action_header && AXIS2_STRLEN(soap_action_header)
-					> 0)
+		/*if(NULL != soap_action_header && AXIS2_STRLEN(soap_action_header)
+					> 0)*/
 		{
 			soap_builder = axis2_soap_builder_create(env, om_builder, 
 						AXIS2_SOAP11_SOAP_ENVELOPE_NAMESPACE_URI);
@@ -243,10 +243,9 @@
 					soap_builder, env);
 			if(NULL == soap_envelope)
 			{
-				AXIS2_OM_STAX_BUILDER_FREE(om_builder, env);
+				AXIS2_SOAP_BUILDER_FREE(soap_builder, env);
 				om_builder = NULL;
 				xml_reader = NULL;
-				AXIS2_SOAP_BUILDER_FREE(soap_builder, env);
 				soap_builder = NULL;
 				return AXIS2_FAILURE;
 			}
@@ -775,6 +774,7 @@
 	{
 		len = AXIS2_HTTP_CHUNKED_STREAM_READ(cb_ctx->chunked_stream, env, 
 						buffer, size);
+        buffer[len] = '\0';
 		return len;
 	}
 	else
@@ -794,7 +794,7 @@
         len = AXIS2_STREAM_READ(in_stream, env, buffer, read_len);
         if(len > 0)
         {
-                buffer[len] = '\0';
+             buffer[len] = '\0';
             ((axis2_callback_info_t*)ctx)->unread_len -= len;
         }
         return len;

Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c?rev=382354&r1=382353&r2=382354&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
(original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
Thu Mar  2 03:39:09 2006
@@ -194,11 +194,11 @@
     svr_conn_impl = AXIS2_INTF_TO_IMPL(svr_conn);
 	
 	AXIS2_STREAM_FREE(svr_conn_impl->stream, env);
-    if(-1 != svr_conn_impl->socket)
+    /*if(-1 != svr_conn_impl->socket)
     {
 		axis2_network_handler_close_socket(env, svr_conn_impl->socket);
         svr_conn_impl->socket = -1;
-    }
+    }*/
     return AXIS2_SUCCESS;
 }
 



Mime
View raw message