mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 05:01:53 +08:00
perf: 三阶段性能优化,ICMP 并发提升+TCP 并行探测,端口扫描退避调整,服务探测超时减半
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user