Changeset

2729:7e0c35713bf5

mod_proxy65: Fix for old-style closing of connections (another source of tracebacks with libevent enabled)
author Matthew Wild <mwild1@gmail.com>
date Mon, 01 Mar 2010 18:07:37 +0000
parents 2728:3f8d9319d4a3
children 2730:dea5a65b321d 2731:373a7c960409
files plugins/mod_proxy65.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_proxy65.lua	Mon Mar 01 18:06:54 2010 +0000
+++ b/plugins/mod_proxy65.lua	Mon Mar 01 18:07:37 2010 +0000
@@ -91,12 +91,12 @@
 			conn:lock_read(true)
 		else
 			module:log("warn", "Neither data transfer nor initial connect of a participator of a transfer.")
-			conn.close();
+			conn:close();
 		end
 	else
 		if data ~= nil then
 			module:log("warn", "unknown connection with no authentication data -> closing it");
-			conn.close();
+			conn:close();
 		end
 	end
 end
@@ -107,9 +107,9 @@
 		if session.sha and transfers[session.sha] then
 			local initiator, target = transfers[session.sha].initiator, transfers[session.sha].target;
 			if initiator == conn and target ~= nil then
-				target.close();
+				target:close();
 			elseif target == conn and initiator ~= nil then
-			 	initiator.close();
+			 	initiator:close();
 			end
 			transfers[session.sha] = nil;
 		end