# HG changeset patch # User Kim Alvefur # Date 1626293184 -7200 # Node ID f4c3dcc907d84210bbe7129ac20c44bdbab7c429 # Parent 247561bf6fcaef8a3da1b5019ffb24c2da61dcfd net.server_epoll: Add an (empty) method for setting socket options diff -r 247561bf6fca -r f4c3dcc907d8 net/server_epoll.lua --- 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);