8
我的網絡服務器正在處理一個巨大的文件,然後發送一個響應。我已經嘗試了各種nginx超時參數,但沒有運氣。我嘗試了this question中推薦的參數,但是,我仍然可以看到帶有nginx錯誤日誌中的錯誤的超時頁面。如何增加nginx請求超時?
1 upstream prematurely closed connection while reading response header from upstream,client: 10.0.42.97, server:
這裏是我的nginx.conf
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
client_header_timeout 600;
client_body_timeout 600;
send_timeout 600;
proxy_read_timeout 600;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 600;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/json;
server_names_hash_bucket_size 64;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
我仍然看到不時的502錯誤網關,並出現上述錯誤。什麼可能是錯誤的指針?我的輸入文件是一個csv文件,如果有幫助。任何指針或建議?
我該如何解決這個問題?我如何增加超時時間?