Software /
code /
prosody
Diff
net/server_select.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 | 3398:abc4a52aef02 |
child | 3491:e8c06d20a18b |
line wrap: on
line diff
--- 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()