diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 8c26b4e6..1da0791b 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -709,6 +709,7 @@ function interface:onacceptable() 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 @@ end -- 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); |