Merge pull request #2104 from lucas-clemente/document-http3-server-close

document that closing a http3.Server created by Serve doesn't close the conn
This commit is contained in:
Marten Seemann
2019-09-04 05:34:49 +07:00
committed by GitHub

View File

@@ -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)
}