feat: add server listening functionality with retry mechanism and platform-specific shutdown signal handling for improved robustness

This commit is contained in:
wizardchen
2026-04-11 19:08:17 +08:00
committed by lyingbug
parent 4af7885d13
commit ae95cb1a7a
5 changed files with 52 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
//go:build windows
package main
import (
"os"
"syscall"
)
var shutdownSignals = []os.Signal{syscall.SIGINT, syscall.SIGTERM}