Mercurial > hg > nginx-quic
comparison src/event/ngx_event_timer.h @ 4421:fbae1a82de8b
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 | Mon, 30 Jan 2012 11:12:52 +0000 |
parents | d620f497c50f |
children | 1f513d7f1b45 |
comparison
equal
deleted
inserted
replaced
4420:9ce48f9eb85b | 4421:fbae1a82de8b |
---|