You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2019/03/27 14:02:12 UTC
[trafficserver] branch master updated: HostDB: cancel timeout on
free
This is an automated email from the ASF dual-hosted git repository.
shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new e4470b0 HostDB: cancel timeout on free
e4470b0 is described below
commit e4470b0861898de1ce961dcb808d908afcaa174d
Author: Aaron Canary <ac...@oath.com>
AuthorDate: Tue Mar 26 11:10:52 2019 -0500
HostDB: cancel timeout on free
---
iocore/hostdb/HostDB.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index e4a1427..d32f87a 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -124,6 +124,9 @@ hostdb_cont_free(HostDBContinuation *cont)
if (cont->pending_action) {
cont->pending_action->cancel();
}
+ if (cont->timeout) {
+ cont->timeout->cancel();
+ }
cont->mutex = nullptr;
cont->action.mutex = nullptr;
hostDBContAllocator.free(cont);