Lines Matching refs:err

189     nxt_err_t  err;  in nxt_conn_io_sendfile()  local
198 err = (n == -1) ? nxt_errno : 0; in nxt_conn_io_sendfile()
220 switch (err) { in nxt_conn_io_sendfile()
224 nxt_debug(task, "sendfile() %E", err); in nxt_conn_io_sendfile()
229 nxt_debug(task, "sendfile() %E", err); in nxt_conn_io_sendfile()
233 sb->error = err; in nxt_conn_io_sendfile()
234 nxt_log(task, nxt_socket_error_level(err), in nxt_conn_io_sendfile()
236 b->file->fd, sb->socket, b->file_pos, size, err); in nxt_conn_io_sendfile()
271 int err; in nxt_sendfile() local
286 err = errno; in nxt_sendfile()
288 errno = err; in nxt_sendfile()
301 nxt_err_t err; in nxt_conn_io_writev() local
311 err = (n == -1) ? nxt_socket_errno : 0; in nxt_conn_io_writev()
321 switch (err) { in nxt_conn_io_writev()
325 nxt_debug(task, "writev() %E", err); in nxt_conn_io_writev()
330 nxt_debug(task, "writev() %E", err); in nxt_conn_io_writev()
334 sb->error = err; in nxt_conn_io_writev()
335 nxt_log(task, nxt_socket_error_level(err), in nxt_conn_io_writev()
336 "writev(%d, %ui) failed %E", sb->socket, niov, err); in nxt_conn_io_writev()
348 nxt_err_t err; in nxt_conn_io_send() local
353 err = (n == -1) ? nxt_socket_errno : 0; in nxt_conn_io_send()
363 switch (err) { in nxt_conn_io_send()
367 nxt_debug(task, "send() %E", err); in nxt_conn_io_send()
372 nxt_debug(task, "send() %E", err); in nxt_conn_io_send()
376 sb->error = err; in nxt_conn_io_send()
377 nxt_log(task, nxt_socket_error_level(err), in nxt_conn_io_send()
378 "send(%d, %p, %uz) failed %E", sb->socket, buf, size, err); in nxt_conn_io_send()
457 nxt_err_t err; in nxt_event_conn_io_writev() local
467 err = (n == -1) ? nxt_socket_errno : 0; in nxt_event_conn_io_writev()
477 switch (err) { in nxt_event_conn_io_writev()
480 nxt_debug(c->socket.task, "writev() %E", err); in nxt_event_conn_io_writev()
485 nxt_debug(c->socket.task, "writev() %E", err); in nxt_event_conn_io_writev()
489 c->socket.error = err; in nxt_event_conn_io_writev()
490 nxt_log(c->socket.task, nxt_socket_error_level(err), in nxt_event_conn_io_writev()
491 "writev(%d, %ui) failed %E", c->socket.fd, niob, err); in nxt_event_conn_io_writev()
502 nxt_err_t err; in nxt_event_conn_io_send() local
507 err = (n == -1) ? nxt_socket_errno : 0; in nxt_event_conn_io_send()
518 switch (err) { in nxt_event_conn_io_send()
521 nxt_debug(c->socket.task, "send() %E", err); in nxt_event_conn_io_send()
526 nxt_debug(c->socket.task, "send() %E", err); in nxt_event_conn_io_send()
530 c->socket.error = err; in nxt_event_conn_io_send()
531 nxt_log(c->socket.task, nxt_socket_error_level(err), in nxt_event_conn_io_send()
533 c->socket.fd, buf, size, err); in nxt_event_conn_io_send()