Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91039 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10707 invoked from network); 31 Jan 2016 23:45:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2016 23:45:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.174 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.174 mail-pf0-f174.google.com Received: from [209.85.192.174] ([209.85.192.174:33423] helo=mail-pf0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/33-07168-E7C9EA65 for ; Sun, 31 Jan 2016 18:45:02 -0500 Received: by mail-pf0-f174.google.com with SMTP id x125so73258220pfb.0 for ; Sun, 31 Jan 2016 15:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=R6S88QmG/J8RTJ3301UCg7NZJdkyrFf9rhvYtvEfQyA=; b=nqOKrg46JLyLdTim3GigIc9JF1B0N8Nufj8RlekaSK699xonfwLYh4pC3/KuorpLUT BT68PoYKF8tpmOWP4TMSurQPw+mBVc+XAf3dwAGWAn5G/2MMZhyTHudhF0VihjbuWhBH MDeh1wFC0eOyELAVktcZVEx70u4XoPrfpTPcMudsclAfRhd7U6KCfm/JsS2vQ1oHf6eT IVo02Lj+wA25n5YoWhOdvSUSA16HcKkJ09KnrkE8U14GaLphnuPH4y6HHz0MLkBLIyUN P3RyozP606Q7cCCyN6HPHbTbeVwfeDZRmy24NUriuwKyqcIcq9r9ddNqHXxcTICPN3X+ uc1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=R6S88QmG/J8RTJ3301UCg7NZJdkyrFf9rhvYtvEfQyA=; b=iAgx9YzbR6nKdIhp7W2kzSurij15MCAP1nvJDuJVooZZfTHRC/P6QZyqFJFtjn2M6W Jidy2H6mpJigwocRvce8Zrh/Nuel+SJD2aQIBpjUcHbAapV7dTNmwoFVZ5Bd3v6b9s7D t7Ad61vvuSsR5lRY9GpgAcAtQXL10E3G6sZf3lR61a+5MuJBvQIdopXGBgFozlfVb1hh Kjvh204nlCgKvS3C1pEppcOoj5YClbpBkXS4YVNxtbvE0Mg9uhq0856WH3ZtKfaQuaYe UVW9j+YwfBXchkiwr1mNUUOfHk8zgIG3uz6U9+k+Nms/vuX1LMBiwba+zKPZgo2R/mNW CTHw== X-Gm-Message-State: AG10YOTKc5CQn3h8HWL6IK4OyvN7oaSwY/WegogOF9cfnqWUQuSC7+1QBh7zGTsU9a1x2g== X-Received: by 10.98.44.66 with SMTP id s63mr33778688pfs.2.1454283898829; Sun, 31 Jan 2016 15:44:58 -0800 (PST) Received: from Stas-Air.local (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id wa17sm38272805pac.38.2016.01.31.15.44.57 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 31 Jan 2016 15:44:57 -0800 (PST) To: Yasuo Ohgaki , "internals@lists.php.net" References: Message-ID: <56AE9C78.4010301@gmail.com> Date: Sun, 31 Jan 2016 15:44:56 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC Discussion] Precise Session Management From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Consequences > - If script executes session_commit()/session_destroy()/use read only > option, PHP will not perform GC. i.e. GC function is not called at > all. Therefore, probability of GC decreases and GC becomes less > likely. > - If script uses multiple session storage, only the last session > storage performs GC. i.e. Previously used session storage may not call > GC function at all if this is done for site wide. > - User will not see occasional page rendering delay by GC. (This is > the main reason of this change) This doesn't look very good. This has potential to break GC for some applications, especially high-performance ones which are likely to use read-only mode, and thus for them GC is needed. I also don't understand why you need this to avoid delay. Right now GC is performed on shutdown, doesn't it? If it's performed on shutdown, it would not delay rendering. I'm not sure I understand why you need to condition this on session being active or not active. Please explain. -- Stas Malyshev smalyshev@gmail.com