Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 070469A88 for ; Wed, 16 Nov 2011 13:09:48 +0000 (UTC) Received: (qmail 43540 invoked by uid 500); 16 Nov 2011 13:09:47 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 43476 invoked by uid 500); 16 Nov 2011 13:09:47 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 43468 invoked by uid 99); 16 Nov 2011 13:09:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 13:09:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zhaozg@gmail.com designates 209.85.161.45 as permitted sender) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 13:09:39 +0000 Received: by faas14 with SMTP id s14so2085677faa.18 for ; Wed, 16 Nov 2011 05:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PFHcz+IaXAtQQvnOGpJoZGaDB7590wY6m2TenXJlAtU=; b=FdyvZSkdujT+/HI1glf2ymx2e5G0L1A2XB5hoO6R6ZkR1avojDKesHvJu+quj9X94o vWFR2++B3Qc/E9COi63CxJTHUZhSirEKlzWDqn4VwTwGoula/YIQZqxMTgt3WY8wEAZ7 0+kZNUN8Sn4DZqNIiKOyS3eCQDGkGio1f7osU= MIME-Version: 1.0 Received: by 10.182.31.78 with SMTP id y14mr7058087obh.25.1321448958729; Wed, 16 Nov 2011 05:09:18 -0800 (PST) Received: by 10.182.67.166 with HTTP; Wed, 16 Nov 2011 05:09:18 -0800 (PST) In-Reply-To: References: Date: Wed, 16 Nov 2011 21:09:18 +0800 Message-ID: Subject: Re: Report a Bug In truck and 2.4.x at winnt mpm, I think very important From: zhiguo zhao To: dev@httpd.apache.org Content-Type: multipart/alternative; boundary=14dae93b576ec61cee04b1d9cf18 X-Virus-Checked: Checked by ClamAV on apache.org --14dae93b576ec61cee04b1d9cf18 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Give chance to other module save thread-scope information, Please. =D4=DA 2011=C4=EA11=D4=C216=C8=D5 =CF=C2=CE=E78:20=A3=ACzhiguo zhao =D0=B4=B5=C0=A3=BA > 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. > > > > Index: mpm/winnt/child.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- mpm/winnt/child.c (=B0=E6=B1=BE 1202642) > +++ mpm/winnt/child.c (=B9=A4=D7=F7=B8=B1=B1=BE) > @@ -754,9 +754,11 @@ > int rc; > conn_rec *c; > apr_int32_t disconnected; > + apr_pool_t* self; > > osthd =3D 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; > } > --14dae93b576ec61cee04b1d9cf18 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable Give chance to other module save thread-scope information, Please.

<= div class=3D"gmail_quote">=D4=DA 2011=C4=EA11=D4=C216=C8=D5 =CF=C2=CE=E78:2= 0=A3=ACzhiguo zhao <zhaozg@gmail.com>=D0=B4=B5=C0=A3=BA
request_rec->connection->current_thre= ad 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.



Index: mpm/winnt/child.c
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- mpm/winnt/ch= ild.c   (=B0=E6=B1=BE 1202642)
+++ mpm/winnt/child.c   = (=B9=A4=D7=F7=B8=B1=B1=BE)
@@ -754,9 +754,11 @@
     int rc;
&= nbsp;    conn_rec *c;
     apr_int32_t d= isconnected;
+    apr_pool_t* self;

     osthd =3D apr_os_thread_current();
-    apr_os_thread_put(&thd, &osthd, pchild);
+=    apr_pool_create(&self,pchild);
+    a= pr_os_thread_put(&thd, &osthd, self);

&nbs= p;    while (1) {

@@ -858,6 +860,7 @@

     = ;ap_update_child_status_from_indexes(0, thread_num, SERVER_DEAD,
=                      = ;                    (req= uest_rec *) NULL);
+    apr_pool_destroy(self);

     return 0;
 }

--14dae93b576ec61cee04b1d9cf18--