Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 65319 invoked from network); 15 May 2007 08:15:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2007 08:15:04 -0000 Received: (qmail 70512 invoked by uid 500); 15 May 2007 08:15:10 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 70476 invoked by uid 500); 15 May 2007 08:15:09 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 70461 invoked by uid 99); 15 May 2007 08:15:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2007 01:15:09 -0700 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=FROM_ENDS_IN_NUMS,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of zeus19860114@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2007 01:15:02 -0700 Received: by an-out-0708.google.com with SMTP id d31so501537and for ; Tue, 15 May 2007 01:14:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=FCCCKvIbMVSBqrvxAY4uG47GRiNQcHBHGoAm40HcilyQBAWGmFCFNV4VyOHG6UKWkApU2Qg3jyGv1VWxg76FEmKcErPOO8IqD87p2Rc1XgtMw2NWlC78uY/1xXXblREI39noAsUtd5FiqZBlKqd/fPeg62btCjwDH2FPFR8IdRs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=SMNHob2afMDy3r96A9ho3BLl8hJAN6A11MP+jRhE3zVJa4j3QZSBGczMHVaH3D1p5+U1Bm3lZS/k2X+omN80XF0P0DBjus6/Y0r1LncAHETpVnva/X1TK/kcvKoPOgPEDcLQkR+VG1DjMd/Pl6RVq8HFCeDkvWXoWx5q8pvusd4= Received: by 10.100.206.11 with SMTP id d11mr5179435ang.1179216881425; Tue, 15 May 2007 01:14:41 -0700 (PDT) Received: by 10.100.189.5 with HTTP; Tue, 15 May 2007 01:14:41 -0700 (PDT) Message-ID: Date: Tue, 15 May 2007 16:14:41 +0800 From: "Zeus Capricorn" To: modules-dev@httpd.apache.org Subject: process pool does not work MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_72116_29105803.1179216881374" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_72116_29105803.1179216881374 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,folks. i want to log the online user's ip in the apache memory and check it through a specific url. first,I use ap_hook_process_connection to log the user's ip and the time,and i use ap_hook_handler to check the result. in the callback function of ap_hook_process_connection,i allocate my_hash(a apr_hash_t) in the pool(c->base_server->process->pool) if my_hash is NULL,and set the c->remote_ip as key,a point to the time now as value. in the callback function of ap_hook_handler,i use apr_hash_next() to get the value one by one. it works not as what i supposed to do .every client which access my specific url can only see his own ip and time,not ALL the clients. could someone help me ?should i use another pool,or something else? thanks in advance. ------=_Part_72116_29105803.1179216881374--