comparison src/core/ngx_core.h @ 7590:06b01840bd42

Core: moved PROXY protocol fields out of ngx_connection_t. Now a new structure ngx_proxy_protocol_t holds these fields. This allows to add more PROXY protocol fields in the future without modifying the connection structure.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 21 Oct 2019 18:06:19 +0300
parents d27aa9060c95
children 5d91389e0fd3
comparison
equal deleted inserted replaced
7589:486d2e0b1b6f 7590:06b01840bd42
24 typedef struct ngx_event_s ngx_event_t; 24 typedef struct ngx_event_s ngx_event_t;
25 typedef struct ngx_event_aio_s ngx_event_aio_t; 25 typedef struct ngx_event_aio_s ngx_event_aio_t;
26 typedef struct ngx_connection_s ngx_connection_t; 26 typedef struct ngx_connection_s ngx_connection_t;
27 typedef struct ngx_thread_task_s ngx_thread_task_t; 27 typedef struct ngx_thread_task_s ngx_thread_task_t;
28 typedef struct ngx_ssl_s ngx_ssl_t; 28 typedef struct ngx_ssl_s ngx_ssl_t;
29 typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t;
29 typedef struct ngx_ssl_connection_s ngx_ssl_connection_t; 30 typedef struct ngx_ssl_connection_s ngx_ssl_connection_t;
30 typedef struct ngx_udp_connection_s ngx_udp_connection_t; 31 typedef struct ngx_udp_connection_s ngx_udp_connection_t;
31 32
32 typedef void (*ngx_event_handler_pt)(ngx_event_t *ev); 33 typedef void (*ngx_event_handler_pt)(ngx_event_t *ev);
33 typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c); 34 typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c);