Mercurial > hg > nginx-quic
view src/mysql/config @ 2327:be8c6159590b stable-0.6
r2281 merge:
always use buffer, if connection is buffered,
this fixes OpenSSL "bad write retry" error, when
*) nginx passed a single buf greater than our buffer (say 32K) to OpenSSL,
*) OpenSSL returns SSL_ERROR_WANT_WRITE,
*) after some time nginx has to send a new data,
*) so there are at least two bufs nginx does pass them directly to OpenSSL,
*) but copies the first buf part to buffer, and sends the buffer to OpenSSL.
*) because the data length is lesser than it was in previous SSL_write():
16K < 32K, OpenSSL returns SSL_R_BAD_WRITE_RETRY.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 20 Nov 2008 17:20:15 +0000 |
parents | 7cbef16c71a1 |
children |
line wrap: on
line source
ngx_addon_name=ngx_mysql HTTP_MODULES="$HTTP_MODULES ngx_http_mysql_test_module" HTTP_INCS="$HTTP_INCS $ngx_addon_dir" HTTP_DEPS="$HTTP_DEPS $ngx_addon_dir/ngx_mysql.h" #CORE_LIBS="$CORE_LIBS -lmd" USE_SHA1=YES NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_mysql.c" NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_mysql_test.c"