Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit was merged in pull request #53.
This commit is contained in:
2021-04-26 01:10:37 +03:00
committed by GitHub
parent 1d0a53666a
commit f6c43cbf9e
9 changed files with 114 additions and 55 deletions

View File

@@ -7,16 +7,16 @@ import (
"github.com/unistack-org/micro/v3/server"
)
var (
// DefaultMaxMsgSize define maximum message size that server can send
// or receive. Default value is 8K
DefaultMaxMsgSize = 1024 * 8
)
// DefaultMaxMsgSize define maximum message size that server can send
// or receive. Default value is 8K
var DefaultMaxMsgSize = 1024 * 8
type maxMsgSizeKey struct{}
type tlsAuth struct{}
type maxConnKey struct{}
type netListener struct{}
type (
maxMsgSizeKey struct{}
tlsAuth struct{}
maxConnKey struct{}
netListener struct{}
)
//
// MaxMsgSize set the maximum message in bytes the server can receive and