You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Oknet Xu (JIRA)" <ji...@apache.org> on 2016/06/27 06:18:51 UTC

[jira] [Created] (TS-4590) INKVConnInternal didn't set m_free_magic to DEAD as INKContInternal

Oknet Xu created TS-4590:
----------------------------

             Summary: INKVConnInternal didn't set m_free_magic to DEAD as INKContInternal
                 Key: TS-4590
                 URL: https://issues.apache.org/jira/browse/TS-4590
             Project: Traffic Server
          Issue Type: Improvement
          Components: TS API
            Reporter: Oknet Xu


The class INKContInternal is a base class of INKVConnInternal.

INKVConnInternal rewrite destroy() and handle_event(), but forgot to set m_free_magic to DEAD that is a debug flag.

I will add 2 methods for INKContInternal and INKVConnInternal:

- clear()
  - clear variables
- free()
  - call clear() first
  - call this->mutex.clear();
  - set m_free_magic
  - call xxxAllocator.free(this)

and rewrite destroy to call free().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)