Nmap Development mailing list archives
Re: [NSE] Parallel Worker Thread Patch
From: Patrick Donnelly <batrick () batbytes com>
Date: Wed, 11 Nov 2009 21:06:37 -0500
On Sun, Nov 8, 2009 at 5:18 PM, Patrick Donnelly <batrick () batbytes com> wrote:
Here is a patch to add worker threads to NSE for scripts to use. Right now a script is limited in parallelism to working on one socket at any time. A script can now create a worker thread that will be capable of doing work on sockets in parallel with the parent script. It is helpful to view these worker threads as another instantiation of your script with its own custom action function (main function). The worker threads, however, cannot generate script output. As an example use case, an HTTP spider script can use worker threads to perform many requests in parallel instead of serially.
This patch is now committed in revision 16065. -- -Patrick Donnelly "Let all men know thee, but no man know thee thoroughly: Men freely ford that see the shallows." - Benjamin Franklin _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE] Parallel Worker Thread Patch Patrick Donnelly (Nov 08)
- Re: [NSE] Parallel Worker Thread Patch Fyodor (Nov 09)
- Re: [NSE] Parallel Worker Thread Patch Patrick Donnelly (Nov 11)