perf: 三阶段性能优化,ICMP 并发提升+TCP 并行探测,端口扫描退避调整,服务探测超时减半

This commit is contained in:
ZacharyZcR
2026-04-28 11:44:00 +08:00
parent b3d4434057
commit 5b9bcf3937
4 changed files with 38 additions and 20 deletions
+2 -2
View File
@@ -176,8 +176,8 @@ func TestSmartPortInfoScanner_Creation(t *testing.T) {
// TestDefaultConstants 验证默认常量值
func TestDefaultConstants(t *testing.T) {
// 验证默认等待时间
if defaultTotalWaitMS != 6000 {
t.Errorf("defaultTotalWaitMS 应该是 6000,实际是 %d", defaultTotalWaitMS)
if defaultTotalWaitMS != 3000 {
t.Errorf("defaultTotalWaitMS 应该是 3000,实际是 %d", defaultTotalWaitMS)
}
// 验证默认 intensity