Mercurial > hg > nginx
annotate auto/lib/openssl/makefile.msvc @ 4895:508e61393b6c
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 30 Oct 2012 11:14:24 +0000 |
parents | d620f497c50f |
children | abb0a4189cf7 |
rev | line source |
---|---|
2846 | 1 |
2 # Copyright (C) Igor Sysoev | |
4412 | 3 # Copyright (C) Nginx, Inc. |
2846 | 4 |
5 | |
6 all: | |
7 cd $(OPENSSL) | |
8 | |
3488
92378c49456d
MSVC8 compatibility with OpenSSL 1.0.0
Igor Sysoev <igor@sysoev.ru>
parents:
2846
diff
changeset
|
9 perl Configure VC-WIN32 no-shared --prefix=openssl $(OPENSSL_OPT) |
2846 | 10 |
11 ms\do_ms | |
12 | |
13 $(MAKE) -f ms\nt.mak | |
14 $(MAKE) -f ms\nt.mak install |