nxt_listen_socket.c (13:3a52b2c3d3f1) nxt_listen_socket.c (62:5e1efcc7b740)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 227 unchanged lines hidden (view full) ---

236 size += 4 * sizeof(void *) /* SSL/TLS connection */
237 + sizeof(nxt_buf_mem_t)
238 + sizeof(nxt_mem_pool_cleanup_t);
239 }
240
241#endif
242
243 return size + sizeof(nxt_mem_pool_t)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 227 unchanged lines hidden (view full) ---

236 size += 4 * sizeof(void *) /* SSL/TLS connection */
237 + sizeof(nxt_buf_mem_t)
238 + sizeof(nxt_mem_pool_cleanup_t);
239 }
240
241#endif
242
243 return size + sizeof(nxt_mem_pool_t)
244 + sizeof(nxt_event_conn_t)
244 + sizeof(nxt_conn_t)
245 + sizeof(nxt_log_t);
246}
247
248
249static u_char *
250nxt_listen_socket_log_handler(void *ctx, u_char *pos, u_char *end)
251{
252 nxt_sockaddr_t *sa;
253
254 sa = ctx;
255
256 return nxt_sprintf(pos, end, " while creating listening socket on %*s",
257 sa->length, sa->start);
258}
245 + sizeof(nxt_log_t);
246}
247
248
249static u_char *
250nxt_listen_socket_log_handler(void *ctx, u_char *pos, u_char *end)
251{
252 nxt_sockaddr_t *sa;
253
254 sa = ctx;
255
256 return nxt_sprintf(pos, end, " while creating listening socket on %*s",
257 sa->length, sa->start);
258}