Mercurial > hg > nginx
comparison src/os/unix/ngx_os.h @ 5917:2c64b69daec5
Moved writev() handling code to a separate function.
This reduces code duplication and unifies debug logging of the writev() syscall
among various send chain functions.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 13 Aug 2014 15:11:45 +0400 |
parents | 8e903522c17a |
children | 4dc8e7b62216 |
comparison
equal
deleted
inserted
replaced
5916:e044893b4587 | 5917:2c64b69daec5 |
---|---|
73 | 73 |
74 ngx_chain_t *ngx_output_chain_to_iovec(ngx_iovec_t *vec, ngx_chain_t *in, | 74 ngx_chain_t *ngx_output_chain_to_iovec(ngx_iovec_t *vec, ngx_chain_t *in, |
75 size_t limit, ngx_log_t *log); | 75 size_t limit, ngx_log_t *log); |
76 | 76 |
77 | 77 |
78 ssize_t ngx_writev(ngx_connection_t *c, ngx_iovec_t *vec); | |
79 | |
80 | |
78 extern ngx_os_io_t ngx_os_io; | 81 extern ngx_os_io_t ngx_os_io; |
79 extern ngx_int_t ngx_ncpu; | 82 extern ngx_int_t ngx_ncpu; |
80 extern ngx_int_t ngx_max_sockets; | 83 extern ngx_int_t ngx_max_sockets; |
81 extern ngx_uint_t ngx_inherited_nonblocking; | 84 extern ngx_uint_t ngx_inherited_nonblocking; |
82 extern ngx_uint_t ngx_tcp_nodelay_and_tcp_nopush; | 85 extern ngx_uint_t ngx_tcp_nodelay_and_tcp_nopush; |