From 59ba8ee162a46adb0b41a4255c2aab552e5a8b31 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sat, 22 Aug 2009 18:35:00 +0200 Subject: beta 2009.08.22 18:35 --- scripts/context/lua/mtx-server.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/context/lua/mtx-server.lua b/scripts/context/lua/mtx-server.lua index 615506ac0..a1a5d51b3 100644 --- a/scripts/context/lua/mtx-server.lua +++ b/scripts/context/lua/mtx-server.lua @@ -281,8 +281,11 @@ function scripts.webserver.run(configuration) logs.simple("scripts subpath: %s",configuration.scripts) logs.simple("context services: http://localhost:%s/mtx-server-ctx-startup.lua",configuration.port) local server = assert(socket.bind("*", configuration.port)) +--~ local reading = { server } while true do -- no multiple clients local start = os.clock() +--~ local input = socket.select(reading) +--~ local client = input:accept() local client = server:accept() client:settimeout(configuration.timeout or 60) local request, e = client:receive() -- cgit v1.2.3