Welcome! Log In Create A New Profile

Advanced

[nginx] Modules compatibility: peer.notify.

Maxim Dounin
September 29, 2016 01:28PM
details: http://hg.nginx.org/nginx/rev/1c9863f9592e
branches:
changeset: 6707:1c9863f9592e
user: Maxim Dounin <mdounin@mdounin.ru>
date: Thu Sep 29 18:05:59 2016 +0300
description:
Modules compatibility: peer.notify.

This callback can be used to notify balancer about various events.
For now, it is only used in nginx-plus.

diffstat:

src/event/ngx_event_connect.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff --git a/src/event/ngx_event_connect.h b/src/event/ngx_event_connect.h
--- 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)

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Modules compatibility: peer.notify.

Maxim Dounin 223 September 29, 2016 01:28PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready