websocket_fasthttp/constants.go

31 lines
1.2 KiB
Go
Raw Normal View History

2017-11-07 10:03:40 +00:00
package websocket_fasthttp
const (
// DefaultConcurrency is the maximum number of concurrent connections
// the Server may serve by default (i.e. if Server.Concurrency isn't set).
DefaultConcurrency = 256 * 1024
// DefaultMaxStopWaitTime is default value of server stop Timeout
DefaultMaxStopWaitTime = 0
// DefaultHandshakeTimeout is default value of websocket handshake Timeout
DefaultHandshakeTimeout = 0
// DefaultReadBufferSize is default value of Read Buffer Size
2017-11-30 03:15:05 +00:00
DefaultReadBufferSize = 0
2017-11-07 10:03:40 +00:00
// DefaultWriteBufferSize is default value of Write Buffer Size
2017-11-30 03:15:05 +00:00
DefaultWriteBufferSize = 0
2017-11-07 10:03:40 +00:00
// DefaultReadTimeout is default value of read timeout
DefaultReadTimeout = 0
// DefaultWriteTimeout is default value of write timeout
DefaultWriteTimeout = 0
// DefaultEnableCompression is default value of support compression
DefaultEnableCompression = false
2017-11-08 10:15:09 +00:00
// DefaultMaxMessageSize is default size for a message read from the peer
DefaultMaxMessageSize = 4096
// DefaultPongTimeout is default value of websocket pong Timeout
DefaultPongTimeout = 0
// DefaultPingTimeout is default value of websocket ping Timeout
DefaultPingTimeout = 0
// DefaultPingPeriod is default value of send ping period
DefaultPingPeriod = 0
2017-11-07 10:03:40 +00:00
)