[nginx] Renamed ngx_handle_sent_chain() to ngx_chain_update_sent().

Valentin Bartenev vbart at nginx.com
Wed Nov 19 18:18:58 UTC 2014


details:   http://hg.nginx.org/nginx/rev/de68ed551bfb
branches:  
changeset: 5912:de68ed551bfb
user:      Valentin Bartenev <vbart at nginx.com>
date:      Wed Nov 19 21:16:19 2014 +0300
description:
Renamed ngx_handle_sent_chain() to ngx_chain_update_sent().

No functional changes.

diffstat:

 src/core/ngx_buf.c                        |  2 +-
 src/core/ngx_buf.h                        |  2 +-
 src/os/unix/ngx_darwin_sendfile_chain.c   |  2 +-
 src/os/unix/ngx_freebsd_sendfile_chain.c  |  2 +-
 src/os/unix/ngx_linux_sendfile_chain.c    |  2 +-
 src/os/unix/ngx_solaris_sendfilev_chain.c |  2 +-
 src/os/unix/ngx_writev_chain.c            |  2 +-
 src/os/win32/ngx_wsasend_chain.c          |  4 ++--
 8 files changed, 9 insertions(+), 9 deletions(-)

diffs (104 lines):

diff -r 88d55e5934f7 -r de68ed551bfb src/core/ngx_buf.c
--- a/src/core/ngx_buf.c	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/core/ngx_buf.c	Wed Nov 19 21:16:19 2014 +0300
@@ -221,7 +221,7 @@ ngx_chain_update_chains(ngx_pool_t *p, n
 
 
 ngx_chain_t *
-ngx_handle_sent_chain(ngx_chain_t *in, off_t sent)
+ngx_chain_update_sent(ngx_chain_t *in, off_t sent)
 {
     off_t  size;
 
diff -r 88d55e5934f7 -r de68ed551bfb src/core/ngx_buf.h
--- a/src/core/ngx_buf.h	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/core/ngx_buf.h	Wed Nov 19 21:16:19 2014 +0300
@@ -158,6 +158,6 @@ ngx_chain_t *ngx_chain_get_free_buf(ngx_
 void ngx_chain_update_chains(ngx_pool_t *p, ngx_chain_t **free,
     ngx_chain_t **busy, ngx_chain_t **out, ngx_buf_tag_t tag);
 
-ngx_chain_t *ngx_handle_sent_chain(ngx_chain_t *in, off_t sent);
+ngx_chain_t *ngx_chain_update_sent(ngx_chain_t *in, off_t sent);
 
 #endif /* _NGX_BUF_H_INCLUDED_ */
diff -r 88d55e5934f7 -r de68ed551bfb src/os/unix/ngx_darwin_sendfile_chain.c
--- a/src/os/unix/ngx_darwin_sendfile_chain.c	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/os/unix/ngx_darwin_sendfile_chain.c	Wed Nov 19 21:16:19 2014 +0300
@@ -305,7 +305,7 @@ ngx_darwin_sendfile_chain(ngx_connection
 
         c->sent += sent;
 
-        in = ngx_handle_sent_chain(in, sent);
+        in = ngx_chain_update_sent(in, sent);
 
         if (eintr) {
             send = prev_send + sent;
diff -r 88d55e5934f7 -r de68ed551bfb src/os/unix/ngx_freebsd_sendfile_chain.c
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c	Wed Nov 19 21:16:19 2014 +0300
@@ -356,7 +356,7 @@ ngx_freebsd_sendfile_chain(ngx_connectio
 
         c->sent += sent;
 
-        in = ngx_handle_sent_chain(in, sent);
+        in = ngx_chain_update_sent(in, sent);
 
 #if (NGX_HAVE_AIO_SENDFILE)
         if (c->busy_sendfile) {
diff -r 88d55e5934f7 -r de68ed551bfb src/os/unix/ngx_linux_sendfile_chain.c
--- a/src/os/unix/ngx_linux_sendfile_chain.c	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/os/unix/ngx_linux_sendfile_chain.c	Wed Nov 19 21:16:19 2014 +0300
@@ -313,7 +313,7 @@ ngx_linux_sendfile_chain(ngx_connection_
 
         c->sent += sent;
 
-        in = ngx_handle_sent_chain(in, sent);
+        in = ngx_chain_update_sent(in, sent);
 
         if (eintr) {
             send = prev_send;
diff -r 88d55e5934f7 -r de68ed551bfb src/os/unix/ngx_solaris_sendfilev_chain.c
--- a/src/os/unix/ngx_solaris_sendfilev_chain.c	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/os/unix/ngx_solaris_sendfilev_chain.c	Wed Nov 19 21:16:19 2014 +0300
@@ -197,7 +197,7 @@ ngx_solaris_sendfilev_chain(ngx_connecti
 
         c->sent += sent;
 
-        in = ngx_handle_sent_chain(in, sent);
+        in = ngx_chain_update_sent(in, sent);
 
         if (eintr) {
             send = prev_send + sent;
diff -r 88d55e5934f7 -r de68ed551bfb src/os/unix/ngx_writev_chain.c
--- a/src/os/unix/ngx_writev_chain.c	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/os/unix/ngx_writev_chain.c	Wed Nov 19 21:16:19 2014 +0300
@@ -131,7 +131,7 @@ ngx_writev_chain(ngx_connection_t *c, ng
 
         c->sent += sent;
 
-        in = ngx_handle_sent_chain(in, sent);
+        in = ngx_chain_update_sent(in, sent);
 
         if (eintr) {
             send = prev_send;
diff -r 88d55e5934f7 -r de68ed551bfb src/os/win32/ngx_wsasend_chain.c
--- a/src/os/win32/ngx_wsasend_chain.c	Tue Nov 18 17:07:14 2014 -0800
+++ b/src/os/win32/ngx_wsasend_chain.c	Wed Nov 19 21:16:19 2014 +0300
@@ -113,7 +113,7 @@ ngx_wsasend_chain(ngx_connection_t *c, n
 
         c->sent += sent;
 
-        in = ngx_handle_sent_chain(in, sent);
+        in = ngx_chain_update_sent(in, sent);
 
         if (send - prev_send != sent) {
             wev->ready = 0;
@@ -279,7 +279,7 @@ ngx_overlapped_wsasend_chain(ngx_connect
 
     c->sent += sent;
 
-    in = ngx_handle_sent_chain(in, sent);
+    in = ngx_chain_update_sent(in, sent);
 
     if (in) {
         wev->ready = 0;



More information about the nginx-devel mailing list