From 9f25f2c8eba1e1a70595460fcc9f45024388706e Mon Sep 17 00:00:00 2001 From: rfyiamcool Date: Tue, 21 Nov 2023 13:46:54 +0800 Subject: [PATCH] fix: add comment for the readBufferSize and writeBufferSize of upgrade params Signed-off-by: rfyiamcool --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index 29d0deb6..d8a205ef 100644 --- a/server.go +++ b/server.go @@ -34,6 +34,7 @@ type Upgrader struct { // size is zero, then buffers allocated by the HTTP server are used. The // I/O buffer sizes do not limit the size of the messages that can be sent // or received. + // The default value is 4096 bytes, 4kb. ReadBufferSize, WriteBufferSize int // WriteBufferPool is a pool of buffers for write operations. If the value