Software /
code /
prosody
Changeset
958:172fb9a73017
net.httpserver: Don't log that a request has been left open if it is destroyed
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Apr 2009 19:42:56 +0100 |
parents | 957:34f8cda285c4 |
children | 959:e3db909065f2 |
files | net/httpserver.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/httpserver.lua Sun Apr 05 19:42:01 2009 +0100 +++ b/net/httpserver.lua Sun Apr 05 19:42:56 2009 +0100 @@ -96,7 +96,7 @@ 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