# Proxy\_ignore\_client\_abort ignored

**URL:** <https://www.ruby-forum.com/t/proxy-ignore-client-abort-ignored/202688>\
**Category:** NGINX\
**Created:** [February 3, 2011, 6:37pm UTC](https://www.ruby-forum.com/t/proxy-ignore-client-abort-ignored/202688 "2011-02-03T18:37:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 3, 2011, 6:37pm UTC](https://www.ruby-forum.com/t/proxy-ignore-client-abort-ignored/202688/1 "2011-02-03T18:37:54Z")

</div>

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](http://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 …

}

---

<div class="post-metadata">

**Author:** ![SSAndrSS\_Luiz\_dos\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/50afbb/32.png) [@SSAndrSS\_Luiz\_dos\_S](https://www.ruby-forum.com/u/SSAndrSS_Luiz_dos_S)\
**Post date:** [February 3, 2011, 6:56pm UTC](https://www.ruby-forum.com/t/proxy-ignore-client-abort-ignored/202688/2 "2011-02-03T18:56:07Z")

</div>

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](http://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.
