config: added tcpbufsize & udpbufsize(default: 2048)

This commit is contained in:
nadoo committed 2021-07-24 23:45:53 +08:00
1 parent 41861ff48e
commit d615dc087e
7 files changed
+32 -10

No files matched your search

+2 -2
View File
@@ -13,12 +13,12 @@ import (
"github.com/nadoo/glider/pool"
)
const (
var (
// TCPBufSize is the size of tcp buffer.
TCPBufSize = 32 << 10
// UDPBufSize is the size of udp buffer.
UDPBufSize = 64 << 10
UDPBufSize = 2 << 10
)
// Conn is a connection with buffered reader.