diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-server.lua | 3 |
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() |