Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80042D178 for ; Thu, 27 Sep 2012 15:24:42 +0000 (UTC) Received: (qmail 68888 invoked by uid 500); 27 Sep 2012 15:24:42 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 68856 invoked by uid 500); 27 Sep 2012 15:24:41 -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 68848 invoked by uid 99); 27 Sep 2012 15:24:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 15:24:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of trawick@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bk0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2012 15:24:37 +0000 Received: by bkcjf3 with SMTP id jf3so1660827bkc.18 for ; Thu, 27 Sep 2012 08:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oie7CWWc7xdEuhYpCgSUHF3dHZId5B0n4Q5Bysl856g=; b=YY0TlGQG2Z55LA6z2aDKh/S/hFya8ZkpQGR82aknPbd0U+ykpfMeZSovxNyKDithrd wg5Rf8kvqIi0zjcneTYbTPHeI+Di5ZZScP7MP79aHuqujvSeHDJN423Ci8BRpWT9t65m mc5C+9GrF6vZhKf/IJXNDYd5yMlRoVS3We4p06bQKvlwBp+ANvK7W3b7k07jmA9ZeJaA oKIwfkgqvBjrtsjAJTy8XAzIUszWI5pXwvkZ6vVKE0Q9ZxAIX6t1F782llMMIzSbCxwU yoSqgkQ1YNDaIV1TpjwsG1QyPaeoqQdiSvXT8ZGA0LiIGeNt6U4WnJhLF0bxQbAj8kCr VmAQ== MIME-Version: 1.0 Received: by 10.112.27.232 with SMTP id w8mr1726921lbg.77.1348759455969; Thu, 27 Sep 2012 08:24:15 -0700 (PDT) Received: by 10.152.134.179 with HTTP; Thu, 27 Sep 2012 08:24:15 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Sep 2012 11:24:15 -0400 Message-ID: Subject: Re: aprmemcache question From: Jeff Trawick To: Joshua Marantz Cc: "modules-dev@httpd.apache.org" , dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Sep 27, 2012 at 11:15 AM, Joshua Marantz wrote: > On Thu, Sep 27, 2012 at 10:58 AM, Ben Noordhuis wrote: >> >> If dlsym() is called with the special handle NULL, it is interpreted as >> a >> reference to the executable or shared object from which the call is >> being >> made. Thus a shared object can reference its own symbols. >> >> And that's how it works on Linux, Solaris, NetBSD and probably OpenBSD as >> well. > > > Cool, thanks. >> >> > Do you have a feel for the exact meaning of that TTL parameter to >> > apr_memcache_server_create? >> >> You mean what units it uses? Microseconds (at least, in 2.4). > > > Actually what I meant was what that value is used for in the library. The > phrase "time to live of client connection" confuses me. Does it really mean > "the maximum number of seconds apr_memcache is willing to wait for a single > operation? Or does it mean *both*, implying that a fresh TCP/IP connection > is made for every new operation, but will stay alive for only a certain > number of seconds. TCP/IP connections, once created, will be retained for the specified (ttl) number of seconds. They'll be created when needed. The socket connect timeout is hard-coded to 1 second, and there's no timeout for I/O. > > > It is a little disturbing from a module-developer perspective to have the > meaning of that parameter change by a factor of 1M between versions. Would > it be better to revert the recent change and instead change the doc to match > the current behavior? The doc was already changed to match the behavior, but I missed that. The caller I know of used the wrong unit, and I'll submit a patch to fix that in the caller, as well as revert my screw-up from yesterday. > > -Josh > -- Born in Roswell... married an alien... http://emptyhammock.com/