Mercurial > hg > nginx-quic
view src/mysql/config @ 4452:ed05b25a721f stable-1.0
Merge of r4422:
Fixed error handling in ngx_event_connect_peer().
Previously if ngx_add_event() failed a connection was freed two times (once
in the ngx_event_connect_peer(), and again by a caller) as pc->connection was
left set. Fix is to always use ngx_close_connection() to close connection
properly and set pc->connection to NULL on errors.
Patch by Piotr Sikora.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 05 Feb 2012 20:06:50 +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"