修复bug

This commit is contained in:
qaq
2025-06-26 15:48:20 +08:00
parent 5a11c37f90
commit de695e4d77
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -160,8 +160,8 @@ func (w *WebSocketReporter) connect() error {
w.conn = conn
w.connected = true
// 设置最大消息大小为 16MB (默认是 1024 * 1024)
w.conn.SetReadLimit(100 * 1024 * 1024)
// 设置最大消息大小为 10MB (默认是 1024 * 1024)
w.conn.SetReadLimit(10 * 1024 * 1024)
// 设置关闭处理器来检测连接状态
w.conn.SetCloseHandler(func(code int, text string) error {