From a301e1a7064b0d83a2f456a305f07962ad4f0773 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 13 Aug 2014 15:11:45 +0400 Subject: 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. --- src/os/unix/ngx_os.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/os/unix/ngx_os.h') diff --git a/src/os/unix/ngx_os.h b/src/os/unix/ngx_os.h index fa6a6a6ce..09f79175e 100644 --- a/src/os/unix/ngx_os.h +++ b/src/os/unix/ngx_os.h @@ -75,6 +75,9 @@ ngx_chain_t *ngx_output_chain_to_iovec(ngx_iovec_t *vec, ngx_chain_t *in, size_t limit, ngx_log_t *log); +ssize_t ngx_writev(ngx_connection_t *c, ngx_iovec_t *vec); + + extern ngx_os_io_t ngx_os_io; extern ngx_int_t ngx_ncpu; extern ngx_int_t ngx_max_sockets; -- cgit