axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r369638 - in /webservices/axis2/trunk/c/modules: core/transport/http/receiver/simple_http_svr_conn.c util/network_handler.c
Date Tue, 17 Jan 2006 02:37:14 GMT
Author: samisa
Date: Mon Jan 16 18:37:07 2006
New Revision: 369638

URL: http://svn.apache.org/viewcvs?rev=369638&view=rev
Log:
More fixes added

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

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=369638&r1=369637&r2=369638&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
Mon Jan 16 18:37:07 2006
@@ -358,20 +358,22 @@
 						env));
 	headers = AXIS2_HTTP_SIMPLE_RESPONSE_GET_HEADERS(response, env);
 	
+	if (headers)
+    {
 	
-	
-	for(i = 0; i < AXIS2_ARRAY_LIST_SIZE(headers, env); i++)
-	{
-		axis2_http_header_t *header = NULL;
-		header = (axis2_http_header_t *)AXIS2_ARRAY_LIST_GET(headers, env, i);
-		if(NULL != header)
-		{
-			AXIS2_HTTP_RESPONSE_WRITER_PRINTLN_STR(response_writer, env, 
+    	for(i = 0; i < AXIS2_ARRAY_LIST_SIZE(headers, env); i++)
+	    {
+		    axis2_http_header_t *header = NULL;
+    		header = (axis2_http_header_t *)AXIS2_ARRAY_LIST_GET(headers, env, i);
+	    	if(NULL != header)
+		    {
+			    AXIS2_HTTP_RESPONSE_WRITER_PRINTLN_STR(response_writer, env, 
 						AXIS2_HTTP_HEADER_TO_EXTERNAL_FORM(
 						(axis2_http_header_t*)header, env));
-		}
-	}
-	AXIS2_HTTP_RESPONSE_WRITER_PRINTLN(response_writer, env);
+    		}
+	    }
+    	AXIS2_HTTP_RESPONSE_WRITER_PRINTLN(response_writer, env);
+    }
 	
 	response_stream = AXIS2_HTTP_SIMPLE_RESPONSE_GET_BODY(response, env);
 	body_size = AXIS2_HTTP_SIMPLE_RESPONSE_GET_BODY_BYTES(response, env, 

Modified: webservices/axis2/trunk/c/modules/util/network_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/network_handler.c?rev=369638&r1=369637&r2=369638&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/network_handler.c (original)
+++ webservices/axis2/trunk/c/modules/util/network_handler.c Mon Jan 16 18:37:07 2006
@@ -159,7 +159,10 @@
 	
 	cli_len = sizeof(cli_addr);
 	cli_socket = accept(svr_socket, (struct sockaddr *)&cli_addr, &cli_len);
-    perror("My Message");
+    if (cli_socket < 0)
+        perror("Accept Failed ");
+    else
+        printf("cli_socket = %d\n", cli_socket);
 	return cli_socket;
 }
 



Mime
View raw message