aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-22 21:12:22 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-22 21:12:22 +0100
commitc3d3544fb03746b6988fa3de89f35b25472744fb (patch)
treec75cf5fcaad6f4caf9d1979bc4f7d351d115f905 /net/server_event.lua
parenta29ced4e879f44932c14ad182daf536eefe2e303 (diff)
downloadprosody-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)
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua1
1 files changed, 0 insertions, 1 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()