Browse Source

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
svn/tags/lighttpd-1.4.6
Jan Kneschke 16 years ago
parent
commit
54dea53fdf
  1. 5
      src/network.c

5
src/network.c

@ -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;

Loading…
Cancel
Save