Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97298 invoked from network); 22 Sep 2015 06:54:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2015 06:54:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=phofstetter@sensational.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=phofstetter@sensational.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sensational.ch designates 195.226.6.199 as permitted sender) X-PHP-List-Original-Sender: phofstetter@sensational.ch X-Host-Fingerprint: 195.226.6.199 mail.sensational.ch Received: from [195.226.6.199] ([195.226.6.199:50457] helo=mail.sensational.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/05-56639-E3BF0065 for ; Tue, 22 Sep 2015 02:54:55 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:36496) by mail.sensational.ch with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.76 and XAMS 0.0.20) id 1ZeHTX-0005qO-DK for internals@lists.php.net; Tue, 22 Sep 2015 08:54:51 +0200 Received: by wicgb1 with SMTP id gb1so145149679wic.1 for ; Mon, 21 Sep 2015 23:54:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=VIuMbxrcAp+pVFer2PNh6MHer2IUIp3MQMp9PJB+OIQ=; b=C4Aj5prySM+39sTLc+dr6Aztba849x7zGkh8Ibet0LzL3dflXaD3zVjNnBzHmVK4xF zSrXosYDDuagW93+qcuS0KvMvV+VMq0jc8Ff4euWBc6wdDxP5xJHDNTm8AeR/TvITOHt fX3PaWp4qW8l6yjjizoeqe2DjghfHJnfdQWft8pkgz2gcCx/iEOTI0hbeZvJa+S6wNGI Rv9L7Ixnb+9y3YWOWR1BAxzNqYBgs/rzddE/VII1YdO8Yei9R7k5bt78oA0YiingqqNW fZDU0cpFK5gtAbeGtGX//rJkZPoJW5+MuaFVE+BWZlbWdu9IAQdhIJsSTzjlpkSG5f3V 9bdw== X-Gm-Message-State: ALoCoQkn6VAEh6AiWORdKds9GWYjq77Wjfi9tqlovXJB66rlrYLxHb5KLNZTNpZ590jtC7kGzXI2wJN9pV0vhx728r9NruRIlbPBgwv/hCwC2dryhCLAHS46sn8R9VcdzhLn3ai2Wsx40vjMB3ooO5MdlrmtlwvVcQ== X-Received: by 10.194.203.99 with SMTP id kp3mr26635821wjc.157.1442904891010; Mon, 21 Sep 2015 23:54:51 -0700 (PDT) X-Received: by 10.194.203.99 with SMTP id kp3mr26635732wjc.157.1442904889961; Mon, 21 Sep 2015 23:54:49 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 22 Sep 2015 06:54:40 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=047d7bd91af26943a10520507900 X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 209.85.212.178 X-SA-Exim-Mail-From: phofstetter@sensational.ch X-SA-Exim-Scanned: No (on mail.sensational.ch); SAEximRunCond expanded to false Subject: Bug 70279 From: phofstetter@sensational.ch (Philip Hofstetter) --047d7bd91af26943a10520507900 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have done a bit of investigation into bug 70279 and I'm at a point where I need an opinion of somebody with fastcgi experience. The bug was caused by f20118aa669f9992fee8a64024e623805669391b ( https://github.com/php/php-src/commit/f20118aa669f9992fee8a64024e6238056693= 91b) which IMHO has a misunderstanding of what fcgi_init_request does, at least in the context of how FPM is using it (which is why I'm coming here - it's unclear to me what other uses of FastCGI are there): FPM only calls fcgi_init_request once (via fpm_init_request) after it has spawned a handler process. Then it continues to call fcgi_accept_request to actually do the request handling. However, above commit assumes different semantics: It assumes that fcgi_init_request is called before handling every request. It doesn't in FPMs case, so FPM is processing requests with some state from the previous request (like the request headers). Again, I'm not sure who's correct now: The fastcgi API as it's used since above commit or FPM (calling init only once). Depending on this information, the patch would either be more or less undoing the commit or calling fcgi_hash_clean in fcgi_read_request, though that would more or less undo the performance optimization anyways. If somebody with FPM/FastCGI experience could help me here then I'll gladly provide a patch and tests. Philip --=20 Sensational AG Giessh=C3=BCbelstrasse 62c, Postfach 1966, 8021 Z=C3=BCrich Tel. +41 43 544 09 60, Mobile +41 79 341 01 99 info@sensational.ch, http://www.sensational.ch --047d7bd91af26943a10520507900--