From d65d3b08d0cdca77060e205a5bd6675c45476841 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Wed, 6 Apr 2022 15:48:51 +0800 Subject: [PATCH] Change: use default tcp buffer size --- core/option/option.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/option/option.go b/core/option/option.go index 823210b..2076fd5 100644 --- a/core/option/option.go +++ b/core/option/option.go @@ -54,11 +54,11 @@ const ( // tcpDefaultBufferSize is the default size of the send buffer for // a transport endpoint. - tcpDefaultSendBufferSize = stack.DefaultBufferSize + tcpDefaultSendBufferSize = tcp.DefaultSendBufferSize // tcpDefaultReceiveBufferSize is the default size of the receive buffer // for a transport endpoint. - tcpDefaultReceiveBufferSize = stack.DefaultBufferSize + tcpDefaultReceiveBufferSize = tcp.DefaultReceiveBufferSize ) type Option func(*stack.Stack) error