From b99783387a4bd51eba2ea3726910011b389b7c0f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 12 Jan 2025 11:56:16 +0800 Subject: Use bufio.ReadWriter --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 94f195e..c2ee302 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func main() { } go func() { - err := handle_incoming_server_connection(bufio.NewReader(conn), bufio.NewWriter(conn)) + err := handle_incoming_server_connection(bufio.NewReadWriter(bufio.NewReader(conn), bufio.NewWriter(conn))) if err != nil && !errors.Is(err, io.EOF) { clog.Error("connection handler returned error", "err", err) } -- cgit v1.2.3