negotiate maximum number of streams per connection

fixes #20
This commit is contained in:
Marten Seemann
2016-05-14 17:10:49 +07:00
parent 16bd559d9a
commit 878d6a7140
5 changed files with 83 additions and 14 deletions

View File

@@ -32,6 +32,10 @@ const ReceiveStreamFlowControlWindow ByteCount = (1 << 20) // 1 MB
// TODO: set a reasonable value here
const ReceiveConnectionFlowControlWindow ByteCount = (1 << 20) // 1 MB
// MaxIdleConnectionStateLifetime is the maximum value we accept for the idle connection state lifetime
// MaxStreamsPerConnection is the maximum value accepted for the number of streams per connection
// TODO: set a reasonable value here
const MaxStreamsPerConnection uint32 = 100
// MaxIdleConnectionStateLifetime is the maximum value accepted for the idle connection state lifetime
// TODO: set a reasonable value here
const MaxIdleConnectionStateLifetime = 60 * time.Second