aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-25 17:41:39 +0100
committerKim Alvefur <zash@zash.se>2017-02-25 17:41:39 +0100
commit93f4c5076db39f3cc14bb2ad989ade760da0f107 (patch)
tree417ecb9bb042c34d0a79d8dd3bdd47acd72284c0 /net
parentb4b6f7ef293ce05cd9c69d1a2e30e678e8c6d9eb (diff)
downloadprosody-93f4c5076db39f3cc14bb2ad989ade760da0f107.tar.gz
prosody-93f4c5076db39f3cc14bb2ad989ade760da0f107.zip
net.server_epoll: Add method for changing read pattern
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 086c8dfc..680c16d5 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -192,6 +192,10 @@ function interface:socket()
return self.conn;
end
+function interface:set_mode(new_mode)
+ self._pattern = new_mode;
+end
+
function interface:setoption(k, v)
-- LuaSec doesn't expose setoption :(
if self.conn.setoption then