rename the EarlySession to EarlyConnection

This commit is contained in:
Marten Seemann
2022-03-26 15:12:28 +01:00
parent fda9f72161
commit 6aaa9a817c
17 changed files with 232 additions and 228 deletions

View File

@@ -334,7 +334,7 @@ func (s *Server) removeListener(l *quic.EarlyListener) {
s.mutex.Unlock()
}
func (s *Server) handleConn(sess quic.EarlySession) {
func (s *Server) handleConn(sess quic.EarlyConnection) {
decoder := qpack.NewDecoder(nil)
// send a SETTINGS frame
@@ -381,7 +381,7 @@ func (s *Server) handleConn(sess quic.EarlySession) {
}
}
func (s *Server) handleUnidirectionalStreams(sess quic.EarlySession) {
func (s *Server) handleUnidirectionalStreams(sess quic.EarlyConnection) {
for {
str, err := sess.AcceptUniStream(context.Background())
if err != nil {