Removed obsolete code.
The read and write buffers are now emptied in dcb_final_free, so no need to do it explicitly here.
This commit is contained in:
@ -383,16 +383,6 @@ int n_connect = 0;
|
|||||||
static int
|
static int
|
||||||
httpd_close(DCB *dcb)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user