httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52196] New: winnt mpm, others mpm also have this bug. pool shared by mulit-thread.
Date Wed, 16 Nov 2011 12:45:52 GMT
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: bugs@httpd.apache.org
        ReportedBy: zhaozg@gmail.com
    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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message