]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/dns_internal.cc
Merge from trunk. and Save Comm::Connection in IoCallback
[thirdparty/squid.git] / src / dns_internal.cc
index fcb346d7663a88ad0a3a1d98fe637e9636a12e92..903ef656aafffb08015d8cc7f2e8cc86e8a7f047 100644 (file)
@@ -36,6 +36,7 @@
 #include "base/InstanceId.h"
 #include "comm/Connection.h"
 #include "comm/ConnOpener.h"
+#include "comm/Write.h"
 #include "comm.h"
 #include "event.h"
 #include "fde.h"
@@ -772,7 +773,9 @@ idnsDoSendQueryVC(nsvc *vc)
 
     commSetTimeout(vc->conn->fd, Config.Timeout.idns_query, NULL, NULL);
 
-    comm_write_mbuf(vc->conn, mb, idnsSentQueryVC, vc);
+    AsyncCall::Pointer call = commCbCall(78, 5, "idnsSentQueryVC",
+                                         CommIoCbPtrFun(&idnsSentQueryVC, vc));
+    Comm::Write(vc->conn, mb, call);
 
     delete mb;
 }