From 08a1dbd27f868ee5cdfb7efdd98cc3ea5d3bdffb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 5 Apr 2009 19:42:56 +0100 Subject: net.httpserver: Don't log that a request has been left open if it is destroyed --- net/httpserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/httpserver.lua b/net/httpserver.lua index b9ac7971..b16e7f3a 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -96,7 +96,7 @@ local function call_callback(request, err) local response = callback(request.method, request.body and t_concat(request.body), request); if response then - if response == true 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)); else -- cgit v1.2.3