fastcgi - 连接被对等方重置 : FastCGI: comm with server aborted: read failed

标签 fastcgi

在我的专用服务器 (Debian) 上使用 FastCGI。

我现在有时会出现以下错误(完全随机行为!!)。 导致白页(错误 500)。

[2014 年 5 月 27 日星期二 13:02:09] [错误] [客户端 85.68.183.29] (104)连接由对等方重置:FastCGI:与服务器“/var/www/php5.external”的通信中止:读取失败,引用:[...] [2014年5月27日星期二13:02:09] [错误] [客户端85.68.183.29] FastCGI:从服务器“/var/www/php5.external”收到的不完整 header (0字节),引荐来源:[...]

我找不到与此相关的任何其他错误(任何 PHP 详细信息、MySQL SQL 错误,没有其他!!!)。

有什么办法可以防止这个丑陋的错误吗? 我应该回到 mod-php5 吗??

最佳答案

您可以尝试按照本页上的建议进行操作:https://groups.google.com/d/msg/highload-php-en/4F79Pco-2eg/_tfPMiLFzg4J

复制到这里供引用:

Use -idle-timeout paramater on "FastCgiExternalServer" line to solve this problem.

My FastCgiExternalServer line: FastCgiExternalServer /var/run/fastcgi/USERNAME-fcgi -appConnTimeout 10 -idle-timeout 250 -socket /var/run/fastcgi/USERNAME.socket -pass-header Authorization

More information in mod_fastcgi doc: http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html

关于fastcgi - 连接被对等方重置 : FastCGI: comm with server aborted: read failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23888020/

相关文章:

php - 使用 php5.5 在 centos 6.4 上安装 php-memcached

caching - 如何清除 nginx 缓存,该缓存因用户代理而异

python - Django lighttpd FCGI 错误

perl - 鉴于 CGI.pm 的弃用状态,我是否应该从 CGI::Fast 迁移到其他内容,我应该怎么做?

perl - lighttpd + perl + mojolicious =?

java - 多线程 FastCGI java 库

php - PHP退出FastCGI的最佳实践

ruby-on-rails - DreamHost 共享主机上的 rails 3.2.8 ruby​​ 1.9.3 fcgi RMagic 问题

ubuntu - ubuntu服务器重启后nginx 502错误网关

Java PHP FastCGI SocketException : Connection Reset on reading data