Commit 692e2e5
committed
fix: use bufio reader instead of raw conn in vsock proxy bidirectional copy
In handleVsockConnection, the handshake is read using a bufio.NewReader(conn),
but the bidirectional proxy was using io.Copy(guestConn, conn) which reads from
the raw conn. Any data buffered by the bufio.Reader beyond the handshake line
would be silently lost. Use the buffered reader instead, consistent with the
client-side implementations in vsock.go that use bufferedConn wrappers.1 parent 9985f40 commit 692e2e5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments