Comparison

net/server_epoll.lua @ 8507:71ef6d509105

server_epoll: Restore mark on connections which had the onconnect handler called so it is only done once
author Kim Alvefur <zash@zash.se>
date Sat, 03 Feb 2018 17:36:55 +0100
parent 8506:174fd716c9fa
child 8540:ba9fd886b34d
comparison
equal deleted inserted replaced
8506:174fd716c9fa 8507:71ef6d509105
537 end 537 end
538 538
539 -- Connected! 539 -- Connected!
540 function interface:onconnect() 540 function interface:onconnect()
541 self:setflags(true, false); 541 self:setflags(true, false);
542 self:on("connect"); 542 if not self._connected then
543 self._connected = true;
544 self:on("connect");
545 end
543 end 546 end
544 547
545 function interface:onfirstwritable() 548 function interface:onfirstwritable()
546 self.onreadable = nil; 549 self.onreadable = nil;
547 self.onwriteable = nil; 550 self.onwriteable = nil;