https://issues.apache.org/bugzilla/show_bug.cgi?id=52196
Bug #: 52196
Summary: winnt mpm, others mpm also have this bug. pool shared
by mulit-thread.
Product: Apache httpd-2
Version: 2.4-HEAD
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: normal
Priority: P2
Component: mpm_winnt
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
request_rec->connection->current_thread is a new feature,
and every request_rec->connection->current_thread should have different pool,
but now with a same pool,
This is need to fix.
I fix this, Please see below
---------------------------------------------------
===================================================================
--- mpm/winnt/child.c (版本 1202642)
+++ mpm/winnt/child.c (工作副本)
@@ -754,9 +754,11 @@
int rc;
conn_rec *c;
apr_int32_t disconnected;
+ apr_pool_t* self;
osthd = apr_os_thread_current();
- apr_os_thread_put(&thd, &osthd, pchild);
+ apr_pool_create(&self,pchild);
+ apr_os_thread_put(&thd, &osthd, self);
while (1) {
@@ -858,6 +860,7 @@
ap_update_child_status_from_indexes(0, thread_num, SERVER_DEAD,
(request_rec *) NULL);
+ apr_pool_destroy(self);
return 0;
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]