nxt_socket.c (493:745222d540a2) nxt_socket.c (494:7c83ddcc1c42)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

96 if (nxt_fast_path(getsockopt(s, level, sockopt, &val, &len) == 0)) {
97 nxt_debug(task, "getsockopt(%d, %ui, %s): %d",
98 s, level, nxt_socket_sockopt_name(level, sockopt), val);
99 return val;
100 }
101
102 nxt_log(task, NXT_LOG_CRIT, "getsockopt(%d, %ui, %s) failed %E",
103 s, level, nxt_socket_sockopt_name(level, sockopt),
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

96 if (nxt_fast_path(getsockopt(s, level, sockopt, &val, &len) == 0)) {
97 nxt_debug(task, "getsockopt(%d, %ui, %s): %d",
98 s, level, nxt_socket_sockopt_name(level, sockopt), val);
99 return val;
100 }
101
102 nxt_log(task, NXT_LOG_CRIT, "getsockopt(%d, %ui, %s) failed %E",
103 s, level, nxt_socket_sockopt_name(level, sockopt),
104 val, nxt_socket_errno);
104 nxt_socket_errno);
105
106 return -1;
107}
108
109
110nxt_int_t
111nxt_socket_setsockopt(nxt_task_t *task, nxt_socket_t s, nxt_uint_t level,
112 nxt_uint_t sockopt, int val)

--- 210 unchanged lines hidden ---
105
106 return -1;
107}
108
109
110nxt_int_t
111nxt_socket_setsockopt(nxt_task_t *task, nxt_socket_t s, nxt_uint_t level,
112 nxt_uint_t sockopt, int val)

--- 210 unchanged lines hidden ---