fixed counting of unused blocks (sandy <sandy@meebo.com>)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@893 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
6e193e4040
commit
1ea90be00a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue