Software /
code /
prosody
Changeset
4658:de04897cb8fe
net.httpserver: Comment dependency on connlisteners. Further cleanup to follow.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 22 Apr 2012 23:43:34 +0500 |
parents | 4657:281596cc53d3 |
children | 4659:d53142e90cd0 |
files | net/httpserver.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/net/httpserver.lua Sun Apr 22 19:03:50 2012 +0100 +++ b/net/httpserver.lua Sun Apr 22 23:43:34 2012 +0500 @@ -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 @@ 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 @@ 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;