diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-08-22 21:12:22 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-08-22 21:12:22 +0100 |
commit | c3d3544fb03746b6988fa3de89f35b25472744fb (patch) | |
tree | c75cf5fcaad6f4caf9d1979bc4f7d351d115f905 | |
parent | a29ced4e879f44932c14ad182daf536eefe2e303 (diff) | |
download | prosody-c3d3544fb03746b6988fa3de89f35b25472744fb.tar.gz prosody-c3d3544fb03746b6988fa3de89f35b25472744fb.zip |
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)
-rw-r--r-- | net/server_event.lua | 1 | ||||
-rw-r--r-- | net/server_select.lua | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 87630238..1db78041 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -844,7 +844,6 @@ function hook_signal(signal_num, handler) end local function link(sender, receiver, buffersize) - sender:set_mode(buffersize); local sender_locked; function receiver:ondrain() diff --git a/net/server_select.lua b/net/server_select.lua index 51ae4e66..a46551b7 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -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() |