# HG changeset patch # User Kim Alvefur # Date 1517675815 -3600 # Node ID 71ef6d509105b80807f4f454ebabe605aafbf992 # Parent 174fd716c9fa85c093f12e5c4f3d922212c4ac58 server_epoll: Restore mark on connections which had the onconnect handler called so it is only done once diff -r 174fd716c9fa -r 71ef6d509105 net/server_epoll.lua --- a/net/server_epoll.lua Fri Feb 02 23:46:00 2018 +0100 +++ b/net/server_epoll.lua Sat Feb 03 17:36:55 2018 +0100 @@ -539,7 +539,10 @@ -- Connected! function interface:onconnect() self:setflags(true, false); - self:on("connect"); + if not self._connected then + self._connected = true; + self:on("connect"); + end end function interface:onfirstwritable()