forked from quic-go/quic-go
http3: return http.ErrServerClosed for ServeQUICConn after Server.Close (#5095)
This commit is contained in:
@@ -883,6 +883,7 @@ var _ = Describe("Server", func() {
|
||||
serv := &Server{}
|
||||
Expect(serv.Close()).To(Succeed())
|
||||
Expect(serv.ListenAndServeTLS(testdata.GetCertificatePaths())).To(MatchError(http.ErrServerClosed))
|
||||
Expect(serv.ServeQUICConn(nil)).To(MatchError(http.ErrServerClosed))
|
||||
})
|
||||
|
||||
It("handles concurrent Serve and Close", func() {
|
||||
|
||||
Reference in New Issue
Block a user