Diff

init.lua @ 399:82ad158714e5

Merge with Zash
author Matthew Wild <mwild1@gmail.com>
date Tue, 12 Jan 2016 13:14:36 +0000
parent 369:074c547fe05a
parent 385:e6bf19ad5c19
child 411:db462d4feb44
line wrap: on
line diff
--- a/init.lua	Sat Jan 09 11:03:30 2016 +0000
+++ b/init.lua	Tue Jan 12 13:14:36 2016 +0000
@@ -25,7 +25,7 @@
 	for i=1,select("#", ...) do
 		local ok, err = pcall(require, "verse."..select(i,...));
 		if not ok then
-			error("Verse connection module not found: verse."..select(i,...).."\n"..err);
+			error("Verse connection module not found: verse."..select(i,...)..err);
 		end
 	end
 	return verse;
@@ -119,6 +119,7 @@
 	-- Create and initiate connection
 	local conn = socket.tcp()
 	conn:settimeout(0);
+	conn:setoption("keepalive", true);
 	local success, err = conn:connect(connect_host, connect_port);
 	
 	if not success and err ~= "timeout" then