Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-7919

Netconf protocol handler maintains a buffer for replies that never shrinks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.14.0, 1.15.0
    • Fix Version/s: 1.14.0, 1.15.0, 2.0.0
    • Component/s: None
    • Labels:
    • Environment:

      any

    • Story Points:
      8

      Description

      The buffer used by the protocol handler for NETCONF devices is reused (which is good), but as a consequence grows to the size of the largest reply ever received. As an example, if one reply grows the buffer to 1M, but all the other replies are under 16k then the buffer is maintained at 1M.

       

      While this isn't critical, it would be nice if there was a memory management algorithm around this that would more aggressively manage the allocated size. for example, if over the past 100 replies the max size was X, maybe trim to that size.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dbainbri David Bainbridge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: