Changed default --max-parallelism for the NSE Nsock library binding to 20

after discussion in the NSE meeting. We are using this value due to machines
on very poor network connections occupying a niche in Nmap's user base.
This commit is contained in:
batrick 2009-07-15 15:27:16 +00:00
parent ba4e924634
commit 04685b77a5

View file

@ -259,7 +259,7 @@ static void set_thread (lua_State *L, int index, struct l_nsock_udata *n)
* CONNECT_WAITING is a weak keyed table of <Thread, Garbage Value> pairs.
* The table contains threads waiting to make a socket connection.
*/
#define MAX_PARALLELISM 40
#define MAX_PARALLELISM 20
#define THREAD_SOCKETS 1 /* <Thread, Table of Sockets (keys)> */
#define CONNECT_WAITING 2 /* Threads waiting to lock */