use a uint64 in the AllowConnectionWindowIncrease callback

This commit is contained in:
Marten Seemann
2022-01-18 09:23:56 +04:00
parent bfd685faf2
commit cb6db58fc1
3 changed files with 3 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ type Config struct {
// to increase the connection flow control window.
// If set, the caller can prevent an increase of the window. Typically, it would do so to
// limit the memory usage.
AllowConnectionWindowIncrease func(sess Session, delta int) bool
AllowConnectionWindowIncrease func(sess Session, delta uint64) bool
// MaxIncomingStreams is the maximum number of concurrent bidirectional streams that a peer is allowed to open.
// Values above 2^60 are invalid.
// If not set, it will default to 100.