The official NGINX Open Source repository.
Go to file
Maxim Dounin 13cda62555 Merge of r4896: event pipe: fixed handling of buf_to_file data.
Input filter might free a buffer if there is no data in it, and in case
of first buffer (used for cache header and request header, aka p->buf_to_file)
this resulted in cache corruption.  Buffer memory was reused to read upstream
response before headers were written to disk.

Fix is to avoid moving pointers in ngx_event_pipe_add_free_buf() to a buffer
start if we were asked to free a buffer used by p->buf_to_file.

This fixes occasional cache file corruption, usually resulted
in "cache file ... has md5 collision" alerts.

Reported by Anatoli Marinov.
2012-11-13 11:24:14 +00:00
auto Merge of r4870, r4871, r4890, r4895: minor fixes. 2012-11-12 18:39:51 +00:00
conf Added the HTTPS fastcgi_param to fastcgi.conf. 2011-12-25 19:15:56 +00:00
contrib nginx-0.3.55-RELEASE import 2006-07-28 15:16:17 +00:00
docs nginx-1.2.4-RELEASE 2012-09-25 13:42:43 +00:00
misc Merge of r4870, r4871, r4890, r4895: minor fixes. 2012-11-12 18:39:51 +00:00
src Merge of r4896: event pipe: fixed handling of buf_to_file data. 2012-11-13 11:24:14 +00:00
.hgtags release-1.2.4 tag 2012-09-25 13:43:03 +00:00