Change: use default tcp buffer size

This commit is contained in:
xjasonlyu
2022-04-06 15:48:51 +08:00
parent c35f28b3a3
commit d65d3b08d0

View File

@@ -54,11 +54,11 @@ const (
// tcpDefaultBufferSize is the default size of the send buffer for // tcpDefaultBufferSize is the default size of the send buffer for
// a transport endpoint. // a transport endpoint.
tcpDefaultSendBufferSize = stack.DefaultBufferSize tcpDefaultSendBufferSize = tcp.DefaultSendBufferSize
// tcpDefaultReceiveBufferSize is the default size of the receive buffer // tcpDefaultReceiveBufferSize is the default size of the receive buffer
// for a transport endpoint. // for a transport endpoint.
tcpDefaultReceiveBufferSize = stack.DefaultBufferSize tcpDefaultReceiveBufferSize = tcp.DefaultReceiveBufferSize
) )
type Option func(*stack.Stack) error type Option func(*stack.Stack) error