# HG changeset patch # User Matthew Wild # Date 1266549680 0 # Node ID 23bb7e29819e81e25b6b7a52be425539e67f064f # Parent 8e2dba8904a7b9efe984c6d41982ccf6f3d0574f net.http: Don't re-destroy a request when the connection is closed diff -r 8e2dba8904a7 -r 23bb7e29819e 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;