Software /
code /
prosody
Changeset
9438:916bee81eb7e
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Oct 2018 17:50:41 +0200 |
parents | 9437:b202aa1e2d7b |
children | 9439:988392a56495 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Sat Oct 06 17:19:50 2018 +0200 +++ b/net/server_epoll.lua Sat Oct 06 17:50:41 2018 +0200 @@ -671,10 +671,9 @@ 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