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)

This commit is contained in:
Matthew Wild 2010-08-22 21:12:22 +01:00
parent a29ced4e87
commit c3d3544fb0
2 changed files with 0 additions and 2 deletions

View file

@ -666,7 +666,6 @@ closesocket = function( socket )
end
local function link(sender, receiver, buffersize)
sender:set_mode(buffersize);
local sender_locked;
local _sendbuffer = receiver.sendbuffer;
function receiver.sendbuffer()