aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-04-22 23:43:34 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-04-22 23:43:34 +0500
commit1e7af784820756180d503a34fd86d4f685d42f65 (patch)
tree9fdee877549c4be1406111b5e307fecb8919187e
parent3aa4c851a6907975b6d833e295e11e0c4d1ebec2 (diff)
downloadprosody-1e7af784820756180d503a34fd86d4f685d42f65.tar.gz
prosody-1e7af784820756180d503a34fd86d4f685d42f65.zip
net.httpserver: Comment dependency on connlisteners. Further cleanup to follow.
-rw-r--r--net/httpserver.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index 44e8e24d..0f5a4186 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -10,8 +10,8 @@
local url_parse = require "socket.url".parse;
local httpstream_new = require "util.httpstream".new;
-local connlisteners_start = require "net.connlisteners".start;
-local connlisteners_get = require "net.connlisteners".get;
+--local connlisteners_start = require "net.connlisteners".start;
+--local connlisteners_get = require "net.connlisteners".get;
local listener;
local t_insert, t_concat = table.insert, table.concat;
@@ -164,7 +164,7 @@ end
function destroy_request(request)
log("debug", "Destroying request %s", request.id);
- listener = listener or connlisteners_get("httpserver");
+ --listener = listener or connlisteners_get("httpserver");
if not request.destroyed then
request.destroyed = true;
if request.on_destroy then
@@ -186,7 +186,7 @@ function new(params)
http_server = { handlers = {} };
http_servers[params.port] = http_server;
-- We weren't already listening on this port, so start now
- connlisteners_start("httpserver", params);
+ --connlisteners_start("httpserver", params);
end
if params.base then
http_server.handlers[params.base] = params.handler;