Commit 4a02dcb
committed
Fix for "Bad file descriptor" with --connect-timeout option (3.0)
This fixes #1834 and #1435 for branch 3.0. (3.1dev: #2047)
The --connect-timeout option had the problem that under certain circumstances
like parallel mass scanning didn't work. The culprit was that a subshell command
was used to connect to the target but the file descriptor wasn't exported.
The PR changes the logic so that the connect pre-check is still done in a subshell
If this fails it proceeds with error handling if NR_SOCKET_FAIL is above threshold.
Otherwise it just connects again.1 parent f5bd5d3 commit 4a02dcb
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10417 | 10417 | | |
10418 | 10418 | | |
10419 | 10419 | | |
10420 | | - | |
| 10420 | + | |
| 10421 | + | |
| 10422 | + | |
10421 | 10423 | | |
10422 | 10424 | | |
10423 | 10425 | | |
| |||
10426 | 10428 | | |
10427 | 10429 | | |
10428 | 10430 | | |
| 10431 | + | |
10429 | 10432 | | |
10430 | | - | |
| 10433 | + | |
10431 | 10434 | | |
10432 | 10435 | | |
10433 | 10436 | | |
| |||
20040 | 20043 | | |
20041 | 20044 | | |
20042 | 20045 | | |
20043 | | - | |
20044 | 20046 | | |
20045 | 20047 | | |
20046 | 20048 | | |
| |||
0 commit comments