feat: update quic-go to 0.27.0

This commit is contained in:
Toby
2022-04-14 19:51:08 -07:00
parent a9ad3e42c9
commit 877affec42
6 changed files with 24 additions and 25 deletions

View File

@@ -96,7 +96,7 @@ func (s *Server) Close() error {
return s.listener.Close()
}
func (s *Server) handleClient(cs quic.Session) {
func (s *Server) handleClient(cs quic.Connection) {
// Expect the client to create a control stream to send its own information
ctx, ctxCancel := context.WithTimeout(context.Background(), protocolTimeout)
stream, err := cs.AcceptStream(ctx)
@@ -125,7 +125,7 @@ func (s *Server) handleClient(cs quic.Session) {
}
// Auth & negotiate speed
func (s *Server) handleControlStream(cs quic.Session, stream quic.Stream) ([]byte, bool, bool, error) {
func (s *Server) handleControlStream(cs quic.Connection, stream quic.Stream) ([]byte, bool, bool, error) {
// Check version
vb := make([]byte, 1)
_, err := stream.Read(vb)