龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

nginx报错 quot;readv() failed (104: Connection reset by peer)q

时间:2014-06-24 02:16来源:网络整理 作者:网络 点击:
分享到:
nginx报错 quot;readv() failed (104: Connection reset by peer)quot; 解决方法 nginx错误日志中出现quot;Connection reset by peerquot; :[代码片段(1行)]出现这种情况可能是因为php的配置参数导致php进程意外终止

nginx错误日志中出现"Connection reset by peer" :

[error] readv() failed (104: Connection reset by peer) while reading upstream, client: x.x.x.x, server: host.tld, request: "POST /script.php, ...

出现这种情况可能是因为php的配置参数导致php进程意外终止了:

max_input_time = ...
max_execution_time = ...

建议增大这两个参数的值。另外PHP-FPM有一个request_terminate_timeout的参数,这个参数可以设定当php进程终止时请求的等待时长。你可以在php-fpm.conf中将这个参数的值设定为600:

request_terminate_timeout = 600
精彩图集

赞助商链接