Github user jacksontj commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/1108#discussion_r83342298 --- Diff: proxy/InkAPI.cc --- @@ -1053,15 +1053,14 @@ int INKVConnInternal::handle_event(int event, void *edata) { handle_event_count(event); - if (m_deleted) { - if (m_deletable) { - this->mutex = NULL; - m_read_vio.set_continuation(NULL); - m_write_vio.set_continuation(NULL); - INKVConnAllocator.free(this); - } - } else { + // If the VConn isn't deleted, call the handler + if (!m_deleted) { return m_event_func((TSCont) this, (TSEvent) event, edata); + } else { + // if the VConn is deleted, and we are in DEBUG mode-- we should assert + // because this means that the VConn was cleaned up before all the callbacks + // (timeouts, etc.) where canceled. + ink_assert("event on deleted INKVConnInternal"); --- End diff -- I think it might also be worthwhile to put a log line (warning?) here for non-debug builds. Thoughts?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---