Software /
code /
prosody
Changeset
11686:f4c3dcc907d8
net.server_epoll: Add an (empty) method for setting socket options
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 14 Jul 2021 22:06:24 +0200 |
parents | 11685:247561bf6fca |
children | 11687:153d2fdd97d3 |
files | net/server_epoll.lua |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_epoll.lua Wed Jul 14 22:04:23 2021 +0200 +++ b/net/server_epoll.lua Wed Jul 14 22:06:24 2021 +0200 @@ -709,6 +709,7 @@ end local client = wrapsocket(conn, self, nil, self.listeners); client:debug("New connection %s on server %s", client, self); + client:defaultoptions(); if self.tls_direct then client:add(true, true); client:inittls(self.tls_ctx, true); @@ -722,9 +723,14 @@ -- Initialization for outgoing connections function interface:init() self:setwritetimeout(cfg.connect_timeout); + self:defaultoptions(); return self:add(true, true); end +-- luacheck: ignore 212/self +function interface:defaultoptions() +end + function interface:pause() self:noise("Pause reading"); return self:set(false);