Upstream timed out (110: Connection timed out) while reading response header from upstream

Today I found below error in the nginx logs.
Upstream timed out (110: Connection timed out) while reading response header from upstream

This error generally occurs when nginx is configured as reverse proxy to other webserver like Apache and till now I was fixing it by increasing the proxy_read_timeout in nginx configuration.

Nginx Reverse Proxy

Increase the proxy_read_timeout in nginx configuration file.

proxy_read_timeout 600;

But this server was standalone nginx server with php-fpm.  So I had to increase the fastcgi_read_timeout.

Standalone Nginx + PHP-FPM

Increase the fastcgi_read_timeout

fastcgi_read_timeout 600;
Show 2 Comments

2 Comments

  1. Charlie,

    Doesn’t increasing the timeout have impact on increase in queue length, thereby increasing response times.

Comments are closed