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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user