From 60ea96e178991bff7c1e95c9775cedadea721c89 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 1 Sep 2025 15:44:11 +0700 Subject: [PATCH] close the connection when done --- client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.go b/client.go index c2ceb99..eb21f95 100644 --- a/client.go +++ b/client.go @@ -37,6 +37,8 @@ func RunClient(addr string, uploadBytes, downloadBytes uint64, keyLogFile io.Wri if err != nil { return err } + defer conn.CloseWithError(quic.ApplicationErrorCode(quic.NoError), "") + str, err := conn.OpenStream() if err != nil { return err