Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.13.0
-
None
-
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