From 564bd6b7ba4cfd8bab38556eeac681a0eb00e8ab Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 1 Sep 2019 11:15:01 +0700 Subject: [PATCH] document that closing a http3.Server created by Serve doesn't close conn --- http3/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http3/server.go b/http3/server.go index c65e46316..4b7aad64a 100644 --- a/http3/server.go +++ b/http3/server.go @@ -73,6 +73,8 @@ func (s *Server) ListenAndServeTLS(certFile, keyFile string) error { } // Serve an existing UDP connection. +// It is possible to reuse the same connection for outgoing connections. +// Closing the server does not close the packet conn. func (s *Server) Serve(conn net.PacketConn) error { return s.serveImpl(s.TLSConfig, conn) }