Changeset

3458:9c3ae41e696c

net.server_select, net.server_event: Remove set_mode() call from server.link()... it can cause the last chunk of data to be discarded if shorter than buffersize (thanks to Zash for the debugging)
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Aug 2010 21:12:22 +0100
parents 3457:24d2c9be0149
children 3459:543f31cdde19
files net/server_event.lua net/server_select.lua
diffstat 2 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Sun Aug 22 20:53:40 2010 +0200
+++ b/net/server_event.lua	Sun Aug 22 21:12:22 2010 +0100
@@ -844,7 +844,6 @@
 end
 
 local function link(sender, receiver, buffersize)
-	sender:set_mode(buffersize);
 	local sender_locked;
 	
 	function receiver:ondrain()
--- a/net/server_select.lua	Sun Aug 22 20:53:40 2010 +0200
+++ b/net/server_select.lua	Sun Aug 22 21:12:22 2010 +0100
@@ -666,7 +666,6 @@
 end
 
 local function link(sender, receiver, buffersize)
-	sender:set_mode(buffersize);
 	local sender_locked;
 	local _sendbuffer = receiver.sendbuffer;
 	function receiver.sendbuffer()