comparison src/http/ngx_http_core_module.h @ 2197:74477ea8074f

*) remove zero termination in ngx_inet_ntop() and ngx_sock_ntop() *) use ngx_snprintf() in ngx_inet_ntop() and ngx_sock_ntop() as they are called just once per connection *) NGX_INET_ADDRSTRLEN
author Igor Sysoev <igor@sysoev.ru>
date Thu, 21 Aug 2008 18:47:23 +0000
parents fb3b084e7d42
children 5398f47082f0
comparison
equal deleted inserted replaced
2196:fab3fa7339ff 2197:74477ea8074f
45 #endif 45 #endif
46 #if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT) 46 #if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT)
47 ngx_uint_t deferred_accept; 47 ngx_uint_t deferred_accept;
48 #endif 48 #endif
49 49
50 u_char addr[INET_ADDRSTRLEN + 6]; 50 u_char addr[NGX_INET_ADDRSTRLEN + sizeof(":65535")];
51 51
52 } ngx_http_listen_conf_t; 52 } ngx_http_listen_conf_t;
53 53
54 54
55 typedef struct { 55 typedef struct {