Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 10889 invoked from network); 9 Jan 2009 09:05:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2009 09:05:24 -0000 Received: (qmail 49243 invoked by uid 500); 9 Jan 2009 09:05:23 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 49125 invoked by uid 500); 9 Jan 2009 09:05:23 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 49116 invoked by uid 99); 9 Jan 2009 09:05:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 01:05:23 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 09:05:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B0AD4234C495 for ; Fri, 9 Jan 2009 01:04:59 -0800 (PST) Message-ID: <1392980896.1231491899722.JavaMail.jira@brutus> Date: Fri, 9 Jan 2009 01:04:59 -0800 (PST) From: "S.Uthaiyashankar (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Updated: (AXIS2C-995) mod_axis2 fails to call svc_skeleton_free In-Reply-To: <840216043.1203489883497.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] S.Uthaiyashankar updated AXIS2C-995: ------------------------------------ Fix Version/s: 1.6.0 > mod_axis2 fails to call svc_skeleton_free > ----------------------------------------- > > Key: AXIS2C-995 > URL: https://issues.apache.org/jira/browse/AXIS2C-995 > Project: Axis2-C > Issue Type: Bug > Components: core/transport > Affects Versions: 1.2.0 > Environment: solaris 10 x86, apache 2.2.4 > Reporter: Ben Wyckoff > Assignee: Supun Kamburugamuva > Fix For: 1.6.0 > > Attachments: mod_axis2_shut_down.patch > > > mod_axis2 calls AXIS2_SVC_SKELETON_INIT but never calls AXIS2_SVC_SKELETON_FREE (or the equivalent), which leaves resources allocated at init time dangling. The axis2_hhtp_server does properly call free, allowing the service to properly clean up after itself. > This issue was submitted to the axis2-c users list, and Dumindu Pallewela replied with the following patch. > Index: mod_axis2.c > =================================================================== > --- mod_axis2.c (revision 629362) > +++ mod_axis2.c (working copy) > @@ -425,6 +425,19 @@ > #endif > } > > +typedef struct worker_cleanup_data > +{ > + const axutil_env_t * env; > + axis2_apache2_worker_t * worker; > +} worker_cleanup_data_t; > + > +static apr_status_t worker_cleanup(void *data) > +{ > + worker_cleanup_data_t *d = (worker_cleanup_data_t *) data; > + axis2_apache2_worker_free(d->worker, d->env); > + return APR_SUCCESS; > +} > + > static int axis2_post_config(apr_pool_t *pconf, apr_pool_t *plog, > apr_pool_t *ptemp, server_rec *svr_rec) > { > @@ -592,6 +605,14 @@ > "[Axis2] Error creating mod_axis2 apache2 worker"); > exit(APEXIT_CHILDFATAL); > } > + else > + { > + worker_cleanup_data_t *data = apr_palloc(pconf, sizeof(worker_cleanup_data_t)); > + data->env = axutil_env; > + data->worker = axis2_worker; > + apr_pool_cleanup_register(pconf, data, worker_cleanup, apr_pool_cleanup_null); > + } > + > return OK; > } > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.