aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
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
commitda6eaea135e293573a6aeaf651ac49288e47e47f (patch)
tree417ecb9bb042c34d0a79d8dd3bdd47acd72284c0 /net/server_epoll.lua
parent50992abb107c557eea8ec203d17d085bfc3bc68c (diff)
downloadprosody-da6eaea135e293573a6aeaf651ac49288e47e47f.tar.gz
prosody-da6eaea135e293573a6aeaf651ac49288e47e47f.zip
net.server_epoll: Add method for changing read pattern
Diffstat (limited to 'net/server_epoll.lua')
-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