目录

Nginx upstream timed out (110: Connection timed out) while reading upstream 处理方式

目录

在请求超时下,Nginx 错误日志中,发现如下信息:

1
upstream timed out (110: Connection timed out) while reading upstream

这种情况主要在以下两种情况下发生:

  1. nginx proxy 需要适当的调整 proxy_read_timeout 值。
1
2
3
4
5
location / {
  ...
  proxy_read_timeout 150;
  ...
}
  1. Nginx 作为 php-fpm 等等其他的有上游服务 在这种情况下,适当的调整 fastcgi_read_timeout 选项值
1
2
3
4
5
location ~ ^.+\.php$ {
  ...
  fastcgi_read_timeout 180;
  ...
}