]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: peer.notify.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 29 Sep 2016 15:05:59 +0000 (18:05 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 29 Sep 2016 15:05:59 +0000 (18:05 +0300)
This callback can be used to notify balancer about various events.
For now, it is only used in nginx-plus.

src/event/ngx_event_connect.h

index 25809d047adb476bb099f0c586c2da4f0c45dc40..f410d35a4b380874ee1074efb1d9886a87b24bf0 100644 (file)
@@ -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)