aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
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
commit5647cd22878f2872de88f7f9be6ab5d4ed5f7639 (patch)
treece73b2bbe3c48a8e91e49a89a1991b25bb43b789 /net/server_select.lua
parentb9134d61df1554dbff3ab62391abe88e5da02c20 (diff)
downloadprosody-5647cd22878f2872de88f7f9be6ab5d4ed5f7639.tar.gz
prosody-5647cd22878f2872de88f7f9be6ab5d4ed5f7639.zip
net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua1
1 files changed, 1 insertions, 0 deletions
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 //--