Proxy_ignore_client_abort ignored

Is ‘proxy_ignore_client_abort’ ignored when either ‘proxy_cache’ or
‘proxy_store’ is set?
I have tried setting it to ‘on’ and ‘off’, but nginx/0.9.4 continues
to download large files even after the requesting client has already
disconnected.

The documentation at wiki.nginx.org doesn’t mention any exceptions to
when ‘proxy_ignore_client_abort’ may be used.

Server block configuration:

server {
listen 172.1.1.1:8181;
server_name nginx.home;

location / {
root /usr/local/www/nginx_cache/files;
try_files “/id=$arg_id.itag=$arg_itag” @proxy;
}
location @proxy {
resolver 8.8.8.8;
proxy_pass http://$host$request_uri;
proxy_ignore_client_abort off;
proxy_temp_path “/usr/local/www/nginx_cache/tmp”;
proxy_store
“/usr/local/www/nginx_cache/files/id=$arg_id.itag=$arg_itag”;

Tested with ‘proxy_cache’ as well.

}

… default location = /50x.html …

}

Hello!

On Thu, Feb 03, 2011 at 03:35:50PM -0200, André Luiz dos Santos wrote:

Is ‘proxy_ignore_client_abort’ ignored when either ‘proxy_cache’ or
‘proxy_store’ is set?
I have tried setting it to ‘on’ and ‘off’, but nginx/0.9.4 continues
to download large files even after the requesting client has already
disconnected.

The documentation at wiki.nginx.org doesn’t mention any exceptions to
when ‘proxy_ignore_client_abort’ may be used.

Yes, with proxy_store set logic identical to proxy_ignore_client_abort
is always activated. With proxy_cache client aborts are ignored
in most situations as well (unless we know for sure response isn’t
cacheable or not started request to upstream yet).

Maxim D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs