Software /
code /
prosody
Comparison
net/httpserver.lua @ 1608:fb53fe17af36
net.httpserver: Reduce log level of 'request left open' message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 27 Jul 2009 14:26:59 +0100 |
parent | 1550:03f89de65d9f |
child | 1632:4a70cbb0fad7 |
comparison
equal
deleted
inserted
replaced
1606:bbadcaab0036 | 1608:fb53fe17af36 |
---|---|
103 | 103 |
104 local response = callback(request.method, request.body and t_concat(request.body), request); | 104 local response = callback(request.method, request.body and t_concat(request.body), request); |
105 if response then | 105 if response then |
106 if response == true and not request.destroyed then | 106 if response == true and not request.destroyed then |
107 -- Keep connection open, we will reply later | 107 -- Keep connection open, we will reply later |
108 log("warn", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy)); | 108 log("debug", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy)); |
109 elseif response ~= true then | 109 elseif response ~= true then |
110 -- Assume response | 110 -- Assume response |
111 send_response(request, response); | 111 send_response(request, response); |
112 destroy_request(request); | 112 destroy_request(request); |
113 end | 113 end |