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 da...@apache.org on 2006/01/17 07:49:44 UTC
svn commit: r369702 -
/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c
Author: damitha
Date: Mon Jan 16 22:49:39 2006
New Revision: 369702
URL: http://svn.apache.org/viewcvs?rev=369702&view=rev
Log:
Changed the constructor to accept null repos name
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c?rev=369702&r1=369701&r2=369702&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c Mon Jan 16 22:49:39 2006
@@ -95,12 +95,15 @@
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
- server_impl->conf_ctx = build_conf_ctx(env, repo);
- if(NULL == server_impl->conf_ctx)
- {
- axis2_http_server_free((axis2_transport_receiver_t*) server_impl, env);
- return NULL;
- }
+ if(repo)
+ {
+ server_impl->conf_ctx = build_conf_ctx(env, repo);
+ if(NULL == server_impl->conf_ctx)
+ {
+ axis2_http_server_free((axis2_transport_receiver_t*) server_impl, env);
+ return NULL;
+ }
+ }
server_impl->http_server.ops->init = axis2_http_server_init;
server_impl->http_server.ops->start = axis2_http_server_start;
server_impl->http_server.ops->stop = axis2_http_server_stop;
@@ -111,7 +114,6 @@
return &(server_impl->http_server);
}
-
axis2_status_t AXIS2_CALL
axis2_http_server_free (axis2_transport_receiver_t *server, axis2_env_t **env)
{
@@ -264,7 +266,7 @@
int axis2_get_instance(struct axis2_transport_receiver **inst,
axis2_env_t **env)
{
- *inst = axis2_http_server_create(env, NULL, 0);
+ *inst = axis2_http_server_create(env, NULL, -1);
if(!(*inst))
{
return AXIS2_FAILURE;