# HG changeset patch # User Kim Alvefur # Date 1488040899 -3600 # Node ID 91db637be237aea710f6afdffa56d1dfb246989b # Parent 428d4abee7230bfb78f428c7f2ab2991a5178695 net.server_epoll: Add method for changing read pattern diff -r 428d4abee723 -r 91db637be237 net/server_epoll.lua --- a/net/server_epoll.lua Mon Feb 20 01:46:54 2017 +0100 +++ b/net/server_epoll.lua Sat Feb 25 17:41:39 2017 +0100 @@ -192,6 +192,10 @@ 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