mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Use buffered reader in peer to fix ShortBuffer (#303)
This prevents a io.ErrShortBuffer from occurring when the byte slice being read is smaller than the chunks sent from the opposite pipe. This makes sense for unordered connections, where transmission is not guaranteed, but does not make sense for TCP-like connections. We use a bufio.Reader when ordered to ensure data isn't lost.
This commit is contained in:
Vendored
+1
@@ -57,6 +57,7 @@
|
||||
"tfexec",
|
||||
"tfstate",
|
||||
"unconvert",
|
||||
"webrtc",
|
||||
"xerrors",
|
||||
"yamux"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user