Mercurial > hg > nginx
changeset 6707:1c9863f9592e
Modules compatibility: peer.notify.
This callback can be used to notify balancer about various events.
For now, it is only used in nginx-plus.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 29 Sep 2016 18:05:59 +0300 |
parents | 829468da49d6 |
children | 4080f94a996f |
files | src/event/ngx_event_connect.h |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/ngx_event_connect.h +++ b/src/event/ngx_event_connect.h @@ -25,6 +25,8 @@ typedef ngx_int_t (*ngx_event_get_peer_p void *data); typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data, ngx_uint_t state); +typedef void (*ngx_event_notify_peer_pt)(ngx_peer_connection_t *pc, + void *data, ngx_uint_t type); #if (NGX_SSL) typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc, @@ -46,6 +48,7 @@ struct ngx_peer_connection_s { ngx_event_get_peer_pt get; ngx_event_free_peer_pt free; + ngx_event_notify_peer_pt notify; void *data; #if (NGX_SSL)