Diff

net/server_event.lua @ 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
parent 3422:331547f2393e
child 3649:ae99396ee261
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()