Bug #12700: 502 Gateway Error/Failed to Return Headers
| From: | paul dot burden at kingproducts dot com | Date: | Sat, 11 Aug 2001 16:40:08 +0000 |
| Subject: | Bug #12700: 502 Gateway Error/Failed to Return Headers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-62950@lists.php.net to get a copy of this message | ||
From: paul.burden@kingproducts.com
Operating system: Windows 2000 Server
PHP version: 4.0.6
PHP Bug Type: IIS related
Bug description: 502 Gateway Error/Failed to Return Headers
I have installed and setup 4 different Windows 2000 Server Pro/Advanced
machines with IIS, PHP 4.0.6, MSSQL Server 2000 and 7. All systems have
variations in hardware configurations and performance, all of the systems
have this identical problem.
In the last 5 days there have been around 2000 site hits. IIS has logged 24
occurrences of a 504 Gateway error. And returns "CGI Failed to return
headers". This error is *very* random. Out of the 35 .php documents, the
error has occurred on 6. These 6 are also the most frequently requested
documents on the server.
These documents are otherwise error free.
Its not too hard to recreate the error. Several repeated requests of the
same document that performs database requests will generate the error.
To me, it seems *completely* random. I have setup IIS to point to a
document that causes a page refresh on a 502 error. The refresh action
re-posts the page and the page will display correctly.
This is a critical problem for me. I have modified the IIS 502 error
report document reload and resubmit the page that generated the error.
The only way I can re-create the crash is by hitting the same page
"UserDetail.php" 10 times in 10 seconds. The 10th request generated a "502
gateway error". NOTE: Crash still happens during normal activity as well.
IIS Logs:
200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:17 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3&FriendStatusChange=1&UserToView=5&Search=3
200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:18 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3&FriendStatusChange=1&UserToView=5&Search=3
200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:18 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3&FriendStatusChange=1&UserToView=5&Search=3
200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
2001-07-11 19:25:18 205.150.207.2 - 205.150.207.20 80 GET
/directory/UserDetail.php
SID=f2b31876e1822c10425ea4e1d13c01f3&FriendStatusChange=1&UserToView=5&Search=3
502 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+4.0)
^^ note the 502 "Gateway error in the last line of the log.
no backtrace, you have no instructions on how to capture this in win32?
Thanks for your attention,
- Paul
--
Edit bug report at: http://bugs.php.net/?id=12700&edit=1