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

TSVIONTodoGet() has bug!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.1
    • 3.1.1
    • TS API
    • OS: Ubuntu 10.10 32bit, Traffic Server version:.3.0, Web Browser:firefox 4.0.1,CPU: Intel core i3-2100 3.10GHz, Memory: 2G, HardDisk: 500G

    Description

      when I use null-transform plugin and print some debug info, I find the TSVIONTodoGet() return a huge member, I consider it maybe has a bug !
      The details shows below:

      code in null-transform.c:

      TSVIO input_vio;
      int64_t towrite = 0;
      int64_t avail = 0;

      towrite = TSVIONTodoGet(input_vio);
      TSDebug("null-transform", "\ttoWrite is %" PRId64 "", towrite);

      if (towrite > 0) {
      /* The amount of data left to read needs to be truncated by

      • the amount of data actually in the read buffer.
        */
        avail = TSIOBufferReaderAvail(TSVIOReaderGet(input_vio));
        TSDebug("null-transform", "\tavail is %" PRId64 "", avail);
        #if MDSN_LOG
        if (log) { TSTextLogObjectWrite(log, "handle_transform() with data to write length: %" PRId64 ", IOBufferReader available data length: %" PRId64 "", towrite, avail);}

        #endif

      log info:

      20110818.13h51m11s handle_transform() with data to write length: 9223372036854775807, IOBufferReader available data length: 1388

      Attachments

        Activity

          People

            Unassigned Unassigned
            tao_627 taoyunxing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 672h
                672h
                Remaining:
                Remaining Estimate - 672h
                672h
                Logged:
                Time Spent - Not Specified
                Not Specified