Skip to content

Commit dfc5e7a

Browse files
committed
Bump default e2e timeout from 15/20s to 30s
DNS tunnels at MTU 50 can take 10+ seconds for the Noise handshake alone. With 15s timeout, SOCKS5 CONNECT through the tunnel had no room to complete. 30s gives enough headroom for slow tunnel conditions.
1 parent f5f8c49 commit dfc5e7a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func init() {
4646
rootCmd.PersistentFlags().IntVar(&workers, "workers", 50, "concurrent workers")
4747
rootCmd.PersistentFlags().IntVarP(&timeout, "timeout", "t", 3, "timeout per attempt in seconds")
4848
rootCmd.PersistentFlags().IntVarP(&count, "count", "c", 3, "number of attempts per IP for ping/resolve checks")
49-
rootCmd.PersistentFlags().IntVar(&e2eTimeout, "e2e-timeout", 20, "timeout for e2e tunnel tests in seconds")
49+
rootCmd.PersistentFlags().IntVar(&e2eTimeout, "e2e-timeout", 30, "timeout for e2e tunnel tests in seconds")
5050
rootCmd.SilenceUsage = true
5151
}
5252

internal/tui/screen_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ func initConfigInputs() []textinput.Model {
143143
inputs[txtQuerySize].CharLimit = 4
144144

145145
inputs[txtE2ETimeout] = textinput.New()
146-
inputs[txtE2ETimeout].Placeholder = "15"
147-
inputs[txtE2ETimeout].SetValue("15")
146+
inputs[txtE2ETimeout].Placeholder = "30"
147+
inputs[txtE2ETimeout].SetValue("30")
148148
inputs[txtE2ETimeout].CharLimit = 3
149149

150150
inputs[txtDomain].Focus()

internal/tui/screen_running.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func buildSteps(cfg ScanConfig) ([]scanner.Step, error) {
3232
dur := time.Duration(cfg.Timeout) * time.Second
3333
e2eTimeout := cfg.E2ETimeout
3434
if e2eTimeout <= 0 {
35-
e2eTimeout = 15
35+
e2eTimeout = 30
3636
}
3737
e2eDur := time.Duration(e2eTimeout) * time.Second
3838
var steps []scanner.Step

0 commit comments

Comments
 (0)