# HG changeset patch # User Matthew Wild # Date 1266549680 0 # Node ID 2dd69e1f7055a94cf49a31ca9784cb586b5f2886 # Parent 9dbe9acf82e8da6d52532529def3ea28ebb879e1 net.http: Don't re-destroy a request when the connection is closed diff -r 9dbe9acf82e8 -r 2dd69e1f7055 net/http.lua --- 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;