Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4590

INKVConnInternal didn't set m_free_magic to DEAD as INKContInternal

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: TS API
    • Labels:
      None

      Description

      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().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                oknet Chao Xu
                Reporter:
                oknet Chao Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: