Software /
code /
prosody
Diff
net/http.lua @ 2671:2dd69e1f7055
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 |
parent | 2669:9dbe9acf82e8 |
child | 2672:215d448d69d0 |
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;