Software /
code /
prosody
Changeset
2808:23bb7e29819e
net.http: Don't re-destroy a request when the connection is closed
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 19 Feb 2010 03:21:20 +0000 |
parents | 2807:8e2dba8904a7 |
children | 2809:1a7b5b775275 |
files | net/http.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http.lua Fri Feb 19 02:58:34 2010 +0000 +++ b/net/http.lua Fri Feb 19 03:21:20 2010 +0000 @@ -43,6 +43,7 @@ elseif request.state ~= "completed" then -- Error.. connection was closed prematurely request.callback("connection-closed", 0, request); + return; end destroy_request(request); request.body = nil;