Bug #73778 [NEW]: FCGI_END_REQUEST repeated

From: Date: Sat, 17 Dec 2016 23:32:44 +0000
Subject: Bug #73778 [NEW]: FCGI_END_REQUEST repeated
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206107@lists.php.net to get a copy of this message
From: max dot bruce12 at gmail dot com Operating system: Ubuntu 16.04 PHP version: 7.1.0 Package: FPM related Bug Type: Bug Bug description:FCGI_END_REQUEST repeated Description: ------------ When writing a web server that interfaces with PHP-FPM (PHP 7.0.8-0ubuntu0.16.04.3 (fpm-fcgi)), I noticed that extra FCGI_END_REQUESTs were sent after each request when using sending requests sequentially but not multiplexed. This happened using all 0's for request ids or sequential ids. Test script: --------------- Send a request to the FCGI server. Attempt to send another request or simply wait perhaps, on the same connection. Actual result: -------------- Caused misordered pages in my implementation which wasn't expecting extra end-requests, could allow users to interfere with others loading of web pages. Very insecure if not handled. -- Edit bug report at https://bugs.php.net/bug.php?id=73778&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73778&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73778&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73778&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73778&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73778&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73778&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73778&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73778&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73778&r=support Expected behavior: https://bugs.php.net/fix.php?id=73778&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73778&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73778&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73778&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73778&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73778&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73778&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73778&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73778&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73778&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73778&r=mysqlcfg

« previous php.bugs (#206107) next »