slice module and upstream sent more data than specified in "Content-Length"

Roman Arutyunyan arut at nginx.com
Wed Oct 12 12:09:57 UTC 2016


Hi,

On Tue, Oct 11, 2016 at 08:26:29PM +0200, Bjørnar Ness wrote:
> Hello nginx-devel
> 
> I am seeing lots of 'upstream sent more data than specified in
> "Content-Length"' errors
> when using nginx with proxy_cache and slice module. The relevant
> nginx.conf settings are:
> 
> 
> > slice 1m;
> > proxy_cache_lock on;
> > proxy_cache_key $uri$is_args$args$slice_range;
> > proxy_set_header Range $slice_range;
> > proxy_set_header Connection "";
> 
> I have tried debugging this with tcpdump and curl, and I dont see that
> upstream (also nginx) is
> not true to content-length header.
> 
> I have also tried playing aroung with buffering, but no success. Has
> anyone else experienced
> similar issues?

Do you have this issue without slice?

Anyway, it would be nice to see debug log

http://nginx.org/en/docs/debugging_log.html

-- 
Roman Arutyunyan



More information about the nginx-devel mailing list