comparison src/http/modules/ngx_http_upstream_keepalive_module.c @ 6559:adf25b8d0431

Introduced the ngx_sockaddr_t type. It's properly aligned and can hold any supported sockaddr.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 23 May 2016 16:37:20 +0300
parents 78b4e10b4367
children 1cb92a2d672e
comparison
equal deleted inserted replaced
6558:68854ce64ec7 6559:adf25b8d0431
27 27
28 ngx_queue_t queue; 28 ngx_queue_t queue;
29 ngx_connection_t *connection; 29 ngx_connection_t *connection;
30 30
31 socklen_t socklen; 31 socklen_t socklen;
32 u_char sockaddr[NGX_SOCKADDRLEN]; 32 ngx_sockaddr_t sockaddr;
33 33
34 } ngx_http_upstream_keepalive_cache_t; 34 } ngx_http_upstream_keepalive_cache_t;
35 35
36 36
37 typedef struct { 37 typedef struct {