Bug #61218 [Asn->Csd]: FPM drops connection while receiving some binary values in FastCGI requests
Edit report at https://bugs.php.net/bug.php?id=61218&edit=1
ID: 61218
Updated by: fat@php.net
Reported by: bruzh2 at gmail dot com
Summary: FPM drops connection while receiving some binary
values in FastCGI requests
-Status: Assigned
+Status: Closed
Type: Bug
Package: FPM related
Operating System: Ubuntu 10.04.4 LTS x64
PHP Version: 5.3.10
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-05-26 17:29:11] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=78de6eb03d3a24691d9f535e2cbe768a9ba8bd48
Log: Fixed bug #61218 (FPM drops connection while receiving some binary values in FastCGI requests)
------------------------------------------------------------------------
[2012-05-26 17:29:10] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=60cca8b9c9b879295dbf1f76e305882e347dcb53
Log: Fixed bug #61218 (FPM drops connection while receiving some binary values in FastCGI requests)
------------------------------------------------------------------------
[2012-05-26 17:29:09] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e7ff3e839b4c2a3423729b07ba1d40f45f1d2983
Log: Fixed bug #61218 (FPM drops connection while receiving some binary valuesin FastCGI requests)
------------------------------------------------------------------------
[2012-03-02 03:14:21] bruzh2 at gmail dot com
linux command line to send HTTP request to nginx:
echo -e "GET /test.php HTTP/1.1\nHost: tmp\nConnection: close\n" | nc localhost 80
nginx response:
HTTP/1.1 502 Bad Gateway
Server: nginx/0.7.68
Date: Thu, 01 Mar 2012 10:39:21 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 173
Connection: close
Set-Cookie: ngs_uid=fwAAAU9PUdk/Oi4mAwMJAg==; expires=Sun, 27-Feb-22 10:39:21 GMT; domain=ngs.ru;
path=/
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/0.7.68</center>
</body>
</html>
Take note this is LOCAL connection to nginx. Further nginx transmits 4 bytes ('127.0.0.1'
= 0x7f 0x00 0x00 0x01) in the 'BREMOTE_ADDR' FastCGI value. And PHP-FPM drops FastCGI
connection after receiving non-zero ended binary sequence in the FastCGI value. Any other connection
from HTTP client without zeroes in the IPv4 address would work.
------------------------------------------------------------------------
[2012-03-02 03:04:11] bruzh2 at gmail dot com
php.ini
http://www.box.com/s/bpuv2ngqoh4mog8srl4d
php-fpm.conf
http://www.box.com/s/o81ruvvf8gx31sd456qm
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61218
--
Edit this bug report at https://bugs.php.net/bug.php?id=61218&edit=1
Thread (6 messages)