Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5246

Connection aborted when using buffer size != 1024

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.13.0
    • None
    • netstd - Library
    • None
    • Patch Available

    Description

      When creating a TBufferedTransport with a size not equal to 1024 the ReadBuffer and WriteBuffer capacity are set.

      The TMemoryBufferTransport.Capacity setter sets _bytesUsed (Length) to the provided value

      When TBufferedTransport.WriteAsync is entered the free space in the buffer is calculated to be 0 and the whole empty buffer is sent on the wire

      This doesn't look to be such an issue in master as TMemoryBufferTransport.Capacity is no longer used to adjust buffer size (constructor used instead). However the bug in Capacity setter still lurks

      Attachments

        Activity

          People

            Unassigned Unassigned
            Karlos Karl Janke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: