1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Increase the number of slack file descriptors in connect scan.

This commit is contained in:
david
2013-01-21 04:36:03 +00:00
parent 2a1abf7b84
commit 51c7dc5b7f
2 changed files with 12 additions and 3 deletions

View File

@@ -942,13 +942,18 @@ void UltraProbe::setConnect(u16 portno) {
ConnectScanInfo::ConnectScanInfo() {
maxValidSD = -1;
numSDs = 0;
/* Subtracting 5 from max_sd accounts for
/* Subtracting 10 from max_sd accounts for
stdin
stdout
stderr
/dev/tty
/var/run/utmpx, which is opened on Mac OS X at least. */
maxSocketsAllowed = (o.max_parallelism) ? o.max_parallelism : MAX(5, max_sd() - 5);
/var/run/utmpx, which is opened on Mac OS X at least
-oG log file
-oN log file
-oS log file
-oX log file
perhaps another we've forgotten. */
maxSocketsAllowed = (o.max_parallelism) ? o.max_parallelism : MAX(5, max_sd() - 10);
FD_ZERO(&fds_read);
FD_ZERO(&fds_write);
FD_ZERO(&fds_except);