make the number of incoming streams configurable, for IETF QUIC

This commit is contained in:
Marten Seemann
2018-02-23 12:30:34 +08:00
parent ecad36a65b
commit 58b20c6009
14 changed files with 131 additions and 29 deletions

View File

@@ -3,7 +3,6 @@ package handshake
import (
"errors"
"fmt"
"math"
"github.com/lucas-clemente/quic-go/qerr"
@@ -121,8 +120,6 @@ func (h *extensionHandlerClient) Receive(hType mint.HandshakeType, el *mint.Exte
if err != nil {
return err
}
// TODO(#878): remove this when implementing the MAX_STREAM_ID frame
params.MaxStreams = math.MaxUint32
h.paramsChan <- *params
return nil
}