mirror of
https://github.com/nginx/nginx.git
synced 2026-09-04 12:28:20 +00:00
Modules compatibility: peer.notify.
This callback can be used to notify balancer about various events. For now, it is only used in nginx-plus.
This commit is contained in:
parent
10f419575a
commit
07c914c0cb
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,8 @@ typedef ngx_int_t (*ngx_event_get_peer_pt)(ngx_peer_connection_t *pc,
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue