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 sa...@apache.org on 2006/01/17 03:37:14 UTC
svn commit: r369638 - in /webservices/axis2/trunk/c/modules:
core/transport/http/receiver/simple_http_svr_conn.c util/network_handler.c
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;
}