update bytes_written in con-> (fixed #737)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@751 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Jan Kneschke 2005-09-29 13:12:34 +00:00
parent 6a0b737789
commit 54dea53fdf
1 changed files with 3 additions and 2 deletions

View File

@ -442,7 +442,7 @@ int network_write_chunkqueue(server *srv, connection *con, chunkqueue *cq) {
return 1;
}
written = con->bytes_written;
written = cq->bytes_out;
#ifdef TCP_CORK
/* Linux: put a cork into the socket as we want to combine the write() calls
@ -485,7 +485,8 @@ int network_write_chunkqueue(server *srv, connection *con, chunkqueue *cq) {
}
#endif
written = con->bytes_written - written;
written = cq->bytes_out - written;
con->bytes_written += written;
con->bytes_written_cur_second += written;
*(con->conf.global_bytes_per_second_cnt_ptr) += written;