Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65641 invoked from network); 30 Jan 2014 07:40:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2014 07:40:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:62367] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/D4-42724-BD10AE25 for ; Thu, 30 Jan 2014 02:40:12 -0500 Received: by mail-la0-f49.google.com with SMTP id y1so2256681lam.36 for ; Wed, 29 Jan 2014 23:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=2LBcbCzsE+XgPwXVg8KjL0rShhGzSIF7OKQ5kxHNaOs=; b=JxxdxQxyPOxyZHnqjZs8N2w5t+vvVwhG6D54tV77+0Ymb70xMtzz0xNwwDcsyfo+C2 C3XgE9Z6BIzguOETk0VtpzFbjfSYuE7o4PedIw9HDvYfgEEKfJYRcnFVin/NJqOH0oPI z1i1gA+QZ7cWG2RtuOszbiPDHZSPnMYCq4Sp3daUXzoaHRg+sqipBlOS3WDEFRVBAHr4 bQ+SkgFihjBU0GjVbqiXoMEp+D6jOW51/TLplWy4j/U6YW+I4tMutCdgr1JeZIq2bj2P ltF0LSncSVgxkhQbOFIvgAzAi3B4AhAs7cYje/9kYt27k6eUxjkTIDt5Yxr79+/TDTKp yjHA== X-Received: by 10.112.14.34 with SMTP id m2mr8216275lbc.13.1391067608260; Wed, 29 Jan 2014 23:40:08 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.199.37 with HTTP; Wed, 29 Jan 2014 23:39:28 -0800 (PST) In-Reply-To: <7732132.fl6VoBGJan@rofl> References: <7732132.fl6VoBGJan@rofl> Date: Thu, 30 Jan 2014 16:39:28 +0900 X-Google-Sender-Auth: vYjG1L_epqFaa5pYBebQJH-b0Ws Message-ID: To: Patrick Schaaf Cc: internals Content-Type: multipart/alternative; boundary=001a11c36c50a6267b04f12b2a53 Subject: Re: [PHP-DEV] Re: [VOTE] Introduce session.lock, session.lazy_write and session.lazy_destory From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c36c50a6267b04f12b2a53 Content-Type: text/plain; charset=UTF-8 Hi Patrick, On Thu, Jan 30, 2014 at 4:30 PM, Patrick Schaaf wrote: > I don't see that. You mean by the call to ps_files_close() within > ps_files_open(), and that close() call dropping the lock? That is > conditional > on either data->fd < 0 (no file open, just a superfluous call to > ps_file_close()), or key != lastkey (and then a _different_ file will be > opened and locked for writing). > Next request may read closed session data which is no longer valid. When it is destroyed or regenerated session with new code, it will be handled by lazy_destroy. So it's not a problem. When session is not destroyed or regenerated, close call in PS_WRITE unlocks file then next request starts reading it. This could happen before writing data by previous request. I don't have access to the code right now, so I have to double check though. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c36c50a6267b04f12b2a53--