diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-06 17:50:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-06 17:50:41 +0200 |
commit | 9f1837f5a43ffafbf650313fdc88073c5f1d6edb (patch) | |
tree | e3bce93609d5ccc9bf8f6c3eb6b7306ab9690f4f /net | |
parent | 3e48ac275a76b71d12eb7a6e31efb48dcc049cd4 (diff) | |
download | prosody-9f1837f5a43ffafbf650313fdc88073c5f1d6edb.tar.gz prosody-9f1837f5a43ffafbf650313fdc88073c5f1d6edb.zip |
net.server_epoll: Make :set_send a noop, should fix net.adns
This is also a noop in server_event. Supposedly meant to prevent
buffered writes from being sent to the socket, but that path becomes
unreachable when net.adns replaces the public send method
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index e6b31bdf..4a3ecb92 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -671,10 +671,9 @@ local function link(from, to) to:set(nil, true); end --- XXX What uses this? --- net.adns -function interface:set_send(new_send) - self.send = new_send; +-- COMPAT +-- net.adns calls this but then replaces :send so this can be a noop +function interface:set_send(new_send) -- luacheck: ignore/212 end -- Close all connections and servers |