aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-07-25 13:53:39 +0100
committerMatthew Wild <mwild1@gmail.com>2014-07-25 13:53:39 +0100
commit559d43393be7558632d5c4845bf5b9078a39c264 (patch)
treece73b2bbe3c48a8e91e49a89a1991b25bb43b789 /net
parent7de3834a31f0a2150cbdbb43a49ea1f84dba4e94 (diff)
downloadprosody-559d43393be7558632d5c4845bf5b9078a39c264.tar.gz
prosody-559d43393be7558632d5c4845bf5b9078a39c264.zip
net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua1
-rw-r--r--net/server_select.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 25799640..b05d1688 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -847,6 +847,7 @@ local function link(sender, receiver, buffersize)
sender:pause();
end
end
+ sender:set_mode("*a");
end
return {
diff --git a/net/server_select.lua b/net/server_select.lua
index 4bda3ef0..e8964518 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -705,6 +705,7 @@ local function link(sender, receiver, buffersize)
sender:lock_read(true);
end
end
+ sender:set_mode("*a");
end
----------------------------------// PUBLIC //--