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

Add / modify APIs to allow easy freelist allocation of iobuffer's from C/C++ plugins

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.2.0
    • Component/s: TS API

      Description

      This would allow for efficient allocations in plugins, such that they can do an in-place new() on a chunk of memory (iobuffer).

      The API / features should make it easy and possible to asks for an iobuffer of at least size <x>. It can return a bigger one, at which point, you'd waste some. But this allows us to reuse / repurpose the existing iobuffer allocation.

      Phil points out that there are existing iobuffer allocation APIs, so maybe something in conjunction with that is appropriate. I would like for this to be easy on the plugin user though, such that it's as simple as "malloc/free" chains.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jkenny Jason Kenny
                Reporter:
                zwoop Leif Hedstrom
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: