mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 17:59:04 +00:00
a quick hack to the scheduling algorithm of scripts, which allows scripts to
finish execution earlier (and thus close the sockets earlier)
This commit is contained in:
@@ -343,7 +343,7 @@ int process_waiting2running(lua_State* l, int resume_arguments) {
|
|||||||
|
|
||||||
// put the thread back into the running
|
// put the thread back into the running
|
||||||
// queue
|
// queue
|
||||||
running_scripts.push_back((*iter));
|
running_scripts.push_front((*iter));
|
||||||
waiting_scripts.erase(iter);
|
waiting_scripts.erase(iter);
|
||||||
|
|
||||||
return SCRIPT_ENGINE_SUCCESS;
|
return SCRIPT_ENGINE_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user