Software /
code /
prosody
Changeset
7910:91db637be237
net.server_epoll: Add method for changing read pattern
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Feb 2017 17:41:39 +0100 |
parents | 7909:428d4abee723 |
children | 7923:81f3068fc30c |
files | net/server_epoll.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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