summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2009-08-22 18:35:00 +0200
committerHans Hagen <pragma@wxs.nl>2009-08-22 18:35:00 +0200
commit59ba8ee162a46adb0b41a4255c2aab552e5a8b31 (patch)
tree3ce84c2116350e401e3ea2d99873709cd40d4d49 /scripts
parenta8e81e5eab3d41a14e5bc9a8a6f0345bbea1a0e2 (diff)
downloadcontext-59ba8ee162a46adb0b41a4255c2aab552e5a8b31.tar.gz
beta 2009.08.22 18:35
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-server.lua3
1 files changed, 3 insertions, 0 deletions
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()