From 91e7ed8aa692928fd56963ca8330d7dca4547cec Mon Sep 17 00:00:00 2001 From: stoiko Date: Thu, 30 Aug 2007 18:35:32 +0000 Subject: [PATCH] a quick hack to the scheduling algorithm of scripts, which allows scripts to finish execution earlier (and thus close the sockets earlier) --- nse_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_main.cc b/nse_main.cc index f70a009ea..3334733be 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -343,7 +343,7 @@ int process_waiting2running(lua_State* l, int resume_arguments) { // put the thread back into the running // queue - running_scripts.push_back((*iter)); + running_scripts.push_front((*iter)); waiting_scripts.erase(iter); return SCRIPT_ENGINE_SUCCESS;