aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-19 03:21:20 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-19 03:21:20 +0000
commit79382a23050436d490bfd030ca2cc200f371bd2b (patch)
tree91be88b1473a9cb03b261a8dabaf77aee75c47d2
parent1e2242d3194b34c8451985dec895d30217a82d2f (diff)
downloadprosody-79382a23050436d490bfd030ca2cc200f371bd2b.tar.gz
prosody-79382a23050436d490bfd030ca2cc200f371bd2b.zip
net.http: Don't re-destroy a request when the connection is closed
-rw-r--r--net/http.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http.lua b/net/http.lua
index c1cfae02..b533caae 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -43,6 +43,7 @@ local function request_reader(request, data, startpos)
elseif request.state ~= "completed" then
-- Error.. connection was closed prematurely
request.callback("connection-closed", 0, request);
+ return;
end
destroy_request(request);
request.body = nil;