From 8cd6e24342a7cd209055eef42907ecc10843e466 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 27 May 2007 13:20:20 +0000 Subject: Spawning threads for each call to a LuaDomain. --- lib/LuaHttp.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index 993b7a1..8d24416 100644 --- a/lib/LuaHttp.cc +++ b/lib/LuaHttp.cc @@ -204,6 +204,10 @@ class LuaDomain : public Domain { } virtual void Do(const HttpRequest & req, HttpResponse * res) throw (GeneralException) { int i; + + Lua * oldL = L; + Lua * L = oldL->thread(false); + oldL->pop(); L->push(DOMAIN_REGISTRY); L->gettable(LUA_REGISTRYINDEX); -- cgit v1.2.3