Skip to content

Commit 70ee15b

Browse files
authored
fix(miniccc): fix UDP test-conn on Windows (#1588)
The `cc test-conn udp` command incorrectly failed on Windows hosts with a `wsarecv` error when reading a UDP response into a 1-byte buffer.
1 parent f081a2e commit 70ee15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/miniccc/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func testConnect(test *ron.ConnTest) (string, string) {
319319
}
320320
}
321321

322-
buf := make([]byte, 1)
322+
buf := make([]byte, 4096)
323323

324324
if _, err := conn.Read(buf); err != nil {
325325
return fmt.Sprintf("%s | fail", uri.Host), ""

0 commit comments

Comments
 (0)