The official NGINX Open Source repository.
Go to file
Maxim Dounin 8e67fb4226 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-10-30 11:14:24 +00:00
auto OCSP stapling: ssl_stapling_file support. 2012-10-01 12:41:08 +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.3.7-RELEASE 2012-10-02 13:33:37 +00:00
misc Style, parentheses instead of braces in misc/GNUMakefile. 2012-10-30 11:09:38 +00:00
src Event pipe: fixed handling of buf_to_file data. 2012-10-30 11:14:24 +00:00
.hgtags release-1.3.7 tag 2012-10-02 13:33:58 +00:00