Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.8.31

All files from this thread

File Name File Size   Posted by Date  
cached_0_byte_files_fix_v2.patch 1.7 KB open | download Piotr Sikora 12/28/2009 Read message
Piotr Sikora
December 28, 2009 10:18PM
Hello Maxim,

>> *) Bugfix: nginx closed a connection if a cached response had an
>> empty
>> body.
>> Thanks to Piotr Sikora.
>
> I belive setting r->header_only here is wrong aproach. At least
> it breaks addition filter module for such responses.
>
> Also you probably want to consider doubled last chunk for stale
> responses as fixed here:
>
> http://nginx.org/pipermail/nginx/2009-October/015789.html

You are right, this will break addition filter module.

Your patch works as expected, I wonder why it wasn't applied in the first
place?

Anyway, I modified your patch a little to avoid unnessesary call to
ngx_pcalloc. Hopefully Igor will include this in nginx-0.8.32 ;)

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Attachments:
open | download - cached_0_byte_files_fix_v2.patch (1.7 KB)
Subject Author Posted

nginx-0.8.31

Igor Sysoev December 24, 2009 01:04AM

Re: nginx-0.8.31

Maxim Dounin December 24, 2009 01:04AM

Re: nginx-0.8.31 Attachments

Piotr Sikora December 28, 2009 10:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 245
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready