mod_component_client: Use the net.server connection abstraction for sending whitespace keep-alive, and not the raw socket (fixes a traceback which lead to an infinite timer loop in libevent)
authorWaqas Hussain <waqas20@gmail.com>
Mon, 28 Oct 2013 11:55:59 -0400
changeset 1216 81a3bf8aba90
parent 1215 1b55d8f86644
child 1217 b3e2ed890b93
mod_component_client: Use the net.server connection abstraction for sending whitespace keep-alive, and not the raw socket (fixes a traceback which lead to an infinite timer loop in libevent)
mod_component_client/mod_component_client.lua
--- a/mod_component_client/mod_component_client.lua	Mon Oct 28 11:10:02 2013 +0100
+++ b/mod_component_client/mod_component_client.lua	Mon Oct 28 11:55:59 2013 -0400
@@ -240,7 +240,7 @@
 	end
 
 	local handler , conn = server.wrapclient ( conn , server_host , server_port , listener , "*l")
-	__conn = conn;
+	__conn = handler;
 	------------------------
 	return true;
 end