Diff

net/http.lua @ 2810:85e253d6c4cf

net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Mar 2010 20:52:30 +0000
parent 2809:1a7b5b775275
child 2923:b7049746bd29
line wrap: on
line diff
--- a/net/http.lua	Fri Feb 19 03:21:50 2010 +0000
+++ b/net/http.lua	Wed Mar 03 20:52:30 2010 +0000
@@ -213,7 +213,7 @@
 function destroy_request(request)
 	if request.conn then
 		request.handler.close()
-		listener.disconnect(request.conn, "closed");
+		listener.disconnect(request.handler, "closed");
 	end
 end