From ac34f94d423273c8fa8fdbb5f2ac60e55f2c77d5 Mon Sep 17 00:00:00 2001 From: chungthuang Date: Thu, 9 Jan 2025 10:07:12 -0600 Subject: [PATCH] TUN-8848: Don't treat connection shutdown as an error condition when RPC server is done --- tunnelrpc/quic/session_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunnelrpc/quic/session_server.go b/tunnelrpc/quic/session_server.go index 1d724742..82daa306 100644 --- a/tunnelrpc/quic/session_server.go +++ b/tunnelrpc/quic/session_server.go @@ -51,7 +51,7 @@ func (s *SessionManagerServer) Serve(ctx context.Context, stream io.ReadWriteClo select { case <-rpcConn.Done(): - return rpcConn.Err() + return nil case <-ctx.Done(): return ctx.Err() }