Changeset

6314:8029b8a5f37a

net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data
author Matthew Wild <mwild1@gmail.com>
date Fri, 25 Jul 2014 13:53:39 +0100
parents 6311:f44876548487
children 6315:7a3e2f2d43fc 6323:5926f01e5cd2
files net/server_event.lua net/server_select.lua
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Fri Jul 25 13:59:17 2014 +0200
+++ b/net/server_event.lua	Fri Jul 25 13:53:39 2014 +0100
@@ -847,6 +847,7 @@
 			sender:pause();
 		end
 	end
+	sender:set_mode("*a");
 end
 
 return {
--- a/net/server_select.lua	Fri Jul 25 13:59:17 2014 +0200
+++ b/net/server_select.lua	Fri Jul 25 13:53:39 2014 +0100
@@ -705,6 +705,7 @@
 			sender:lock_read(true);
 		end
 	end
+	sender:set_mode("*a");
 end
 
 ----------------------------------// PUBLIC //--