From 6a318836fb142340f82c04fd7fa8e873e05cb0f2 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 23 Sep 2015 15:11:50 +0300 Subject: [PATCH] Removed obsolete code. The read and write buffers are now emptied in dcb_final_free, so no need to do it explicitly here. --- server/modules/protocol/httpd.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/modules/protocol/httpd.c b/server/modules/protocol/httpd.c index db4467418..a9c9c3ded 100644 --- a/server/modules/protocol/httpd.c +++ b/server/modules/protocol/httpd.c @@ -383,16 +383,6 @@ int n_connect = 0; static int httpd_close(DCB *dcb) { - if(dcb->dcb_readqueue) - { - while((dcb->dcb_readqueue = GWBUF_CONSUME_ALL(dcb->dcb_readqueue))); - } - - if(dcb->writeq) - { - while((dcb->writeq = GWBUF_CONSUME_ALL(dcb->writeq))); - } - return 0; }