From 1ea90be00abc878004ef3d0a439ce651518ca2b9 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Tue, 20 Dec 2005 14:01:49 +0000 Subject: [PATCH] fixed counting of unused blocks (sandy ) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@893 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/connections.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connections.c b/src/connections.c index acd8880a..4322a020 100644 --- a/src/connections.c +++ b/src/connections.c @@ -864,6 +864,7 @@ int connection_handle_read_state(server *srv, connection *con) { c->next = cq->unused; cq->unused = c; + cq->unused_chunks++; c = cq->first; } else if (c->next && c->next->mem->used == 0) { @@ -876,6 +877,7 @@ int connection_handle_read_state(server *srv, connection *con) { fc->next = cq->unused; cq->unused = fc; + cq->unused_chunks++; /* the last node was empty */ if (c->next == NULL) {