Files
Jing Chen 3914a449d4 Fix data races and a deadlock in the byte stream helpers
Race: clientStream.Send and Close both reach ttrpc's unsynchronized
localClosed flag. readByteStream.window is written by
the window goroutine and by Read, so make it atomic.

Deadlock: Read the window by bytes copied instead of bytes
received, so a short read leaves the window above windowSize.

Signed-off-by: Jing Chen <milantracy@gmail.com>
2026-09-02 05:53:51 +00:00
..
2024-02-07 22:40:15 -08:00