accept 0-RTT request in the http3 server

This commit is contained in:
Marten Seemann
2020-01-26 11:53:51 +07:00
parent 91543322f6
commit 950f278362
2 changed files with 2 additions and 7 deletions

View File

@@ -173,10 +173,8 @@ func (s *Server) handleConn(sess quic.EarlySession) {
(&settingsFrame{}).Write(buf)
str.Write(buf.Bytes())
// Wait for completion of the handshake.
// TODO(#2311): allow 0-RTT requests.
<-sess.HandshakeComplete().Done()
// Process all requests immediately.
// It's the client's responsibility to decide which requests are eligible for 0-RTT.
for {
str, err := sess.AcceptStream(context.Background())
if err != nil {