From e37a04496dec4e1eaaef7dfcf99b7ee3327d3566 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 27 Jul 2009 14:26:59 +0100 Subject: net.httpserver: Reduce log level of 'request left open' message --- net/httpserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/httpserver.lua b/net/httpserver.lua index fefd289b..699e0324 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -105,7 +105,7 @@ local function call_callback(request, err) if response then if response == true and not request.destroyed then -- Keep connection open, we will reply later - log("warn", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy)); + log("debug", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy)); elseif response ~= true then -- Assume response send_response(request, response); -- cgit v1.2.3 From 4b7aa0ca1f830e71ee4f043c6699d78e3123cd65 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 28 Jul 2009 00:42:56 +0500 Subject: Fixed: Possible duplicate error replies for unhandled stanzas --- core/stanza_router.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 6dc4274b..dac098bb 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -150,11 +150,7 @@ function core_post_stanza(origin, stanza) component_handle_stanza(origin, stanza); return; end - if not modules_handle_stanza(h.host, origin, stanza) then - if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then - origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); - end - end + modules_handle_stanza(h.host, origin, stanza); else core_route_stanza(origin, stanza); end -- cgit v1.2.3