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