diff options
author | Roman Arutyunyan <arut@nginx.com> | 2014-10-28 12:29:58 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2014-10-28 12:29:58 +0300 |
commit | 0989d63f06376ab9434a6449cd316a3c555167d6 (patch) | |
tree | 9cf0c4f7b2726d214f29771b577511a5be2567a7 /src/os/unix/ngx_os.h | |
parent | 5f625b7df05ab02232c6e5dff94bc2961be3a554 (diff) | |
download | nginx-0989d63f06376ab9434a6449cd316a3c555167d6.tar.gz nginx-0989d63f06376ab9434a6449cd316a3c555167d6.zip |
Core: added limit to recv_chain().
Diffstat (limited to 'src/os/unix/ngx_os.h')
-rw-r--r-- | src/os/unix/ngx_os.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/os/unix/ngx_os.h b/src/os/unix/ngx_os.h index 1033d8825..a1586426c 100644 --- a/src/os/unix/ngx_os.h +++ b/src/os/unix/ngx_os.h @@ -17,7 +17,8 @@ typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size); -typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in); +typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in, + off_t limit); typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size); typedef ngx_chain_t *(*ngx_send_chain_pt)(ngx_connection_t *c, ngx_chain_t *in, off_t limit); @@ -41,7 +42,7 @@ ngx_int_t ngx_os_signal_process(ngx_cycle_t *cycle, char *sig, ngx_int_t pid); ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); -ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry); +ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry, off_t limit); ssize_t ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size); ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, @@ -49,7 +50,7 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, #if (NGX_HAVE_AIO) ssize_t ngx_aio_read(ngx_connection_t *c, u_char *buf, size_t size); -ssize_t ngx_aio_read_chain(ngx_connection_t *c, ngx_chain_t *cl); +ssize_t ngx_aio_read_chain(ngx_connection_t *c, ngx_chain_t *cl, off_t limit); ssize_t ngx_aio_write(ngx_connection_t *c, u_char *buf, size_t size); ngx_chain_t *ngx_aio_write_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit); |