forked from quic-go/quic-go
http3: fix documentation for Server.ServeListener (#5282)
This commit is contained in:
@@ -271,7 +271,7 @@ func (s *Server) ServeQUICConn(conn *quic.Conn) error {
|
|||||||
// ServeListener serves an existing QUIC listener.
|
// ServeListener serves an existing QUIC listener.
|
||||||
// Make sure you use http3.ConfigureTLSConfig to configure a tls.Config
|
// Make sure you use http3.ConfigureTLSConfig to configure a tls.Config
|
||||||
// and use it to construct a http3-friendly QUIC listener.
|
// and use it to construct a http3-friendly QUIC listener.
|
||||||
// Closing the server does close the listener.
|
// Closing the server does not close the listener. It is the application's responsibility to close them.
|
||||||
// ServeListener always returns a non-nil error. After Shutdown or Close, the returned error is http.ErrServerClosed.
|
// ServeListener always returns a non-nil error. After Shutdown or Close, the returned error is http.ErrServerClosed.
|
||||||
func (s *Server) ServeListener(ln QUICListener) error {
|
func (s *Server) ServeListener(ln QUICListener) error {
|
||||||
s.mutex.Lock()
|
s.mutex.Lock()
|
||||||
|
|||||||
Reference in New Issue
Block a user