release: cut 1.0.47 — connector supervision + bot-to-bot @-mention (#548)

This commit is contained in:
修雨 authored and GitHub committed 2026-07-06 00:46:47 +08:00
1 parent bba94c0092
commit b63e1b4469
39 files changed
+2859 -144

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
//go:build !windows
package helpers
import (
"fmt"
"os"
"syscall"
)
func checkFDLimit() {
var rlim syscall.Rlimit
if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlim); err != nil {
return
}
if rlim.Cur < 512 {
fmt.Fprintf(os.Stderr, "[connect][warn] 文件描述符上限 %d 偏低,多 agent 并发连接可能不稳定;建议 ulimit -n 1024\n", rlim.Cur)
}
}