when this function called the fd has start closing but not realy closed yet.
In this case this function will try to do a comm_write (idnsDoSendQueryVC
function) on sockect which closing and an assertion will triggered.
An extra test needed here to test if the socket closing and if yes just return.
#include "SquidTime.h"
#include "Store.h"
#include "comm.h"
+#include "fde.h"
#include "MemBuf.h"
#include "wordlist.h"
if (flag == COMM_ERR_CLOSING)
return;
+
+ if (fd_table[fd].closing())
+ return;
if (flag != COMM_OK || size <= 0) {
comm_close(fd);