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

TSIOBufferReaderAvail not updates by the VConn write side

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: sometime
    • Component/s: TS API
    • Labels:
      None

      Description

      When proxying from a plugin, you call TSVConnWrite passing in a TSIOBufferReader that is specific for the write side of the VC. The implication is that the core will use this reader to read out of the buffer as the plugin writes into it.

      However, if you subsequently call TSIOBufferReaderAvail on the buffer reader that you created, you will find that this count of available bytes never goes down. It seems possible (likely?) that the consumer side of the write never calls consume() on the reader.

      This can be demonstrated using the example/passthru/passthru.cc.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jamespeach James Peach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: