]> git.kaiwu.me - nginx.git/commitdiff
update c->sent in ngx_unix_send()
authorIgor Sysoev <igor@sysoev.ru>
Sat, 18 Apr 2009 19:13:53 +0000 (19:13 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 18 Apr 2009 19:13:53 +0000 (19:13 +0000)
src/os/unix/ngx_send.c

index 5cbb1285e06be477e005d924c5a60f1718fbf553..e0d690077389c75fa3c85468b43bc8209602dd45 100644 (file)
@@ -40,6 +40,8 @@ ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size)
                 wev->ready = 0;
             }
 
+            c->sent += n;
+
             return n;
         }