From 3af62c659e345bdc52d7d0d1be7db94f7774b77d Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Fri, 1 Mar 2024 07:43:32 +0800 Subject: [PATCH] Increase DEFAULT_BUFFER_SIZE --- core/port.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/port.go b/core/port.go index 9605c84..83c4875 100644 --- a/core/port.go +++ b/core/port.go @@ -12,8 +12,8 @@ import ( ) const DEFAULT_TIMEOUT = 60 * 60 +const DEFAULT_BUFFER_SIZE = 1 << 20 const DEFAULT_UDP_TIMEOUT = 60 -const DEFAULT_BUFFER_SIZE = 64 << 10 const DEFAULT_UDP_BUFFER_SIZE = 2 << 10 type Port interface {