# HG changeset patch # User Matthew Wild # Date 1266180429 0 # Node ID b083a667e3be95ee0d6bc6dc301e786b45f66c6c # Parent 2dace3e87dd1d6f3ce5b5f6f357ff0fe5b3c600e net.server_event: Fire onincoming() callback for new connections as opposed to the new onconnect() - let's change this for a future version though diff -r 2dace3e87dd1 -r b083a667e3be net/server_event.lua --- a/net/server_event.lua Sun Feb 14 20:37:49 2010 +0000 +++ b/net/server_event.lua Sun Feb 14 20:47:09 2010 +0000 @@ -161,7 +161,7 @@ self:_lock( false, false, false ) --vdebug( "start listening on client socket with id:", self.id ) self.eventread = addevent( base, self.conn, EV_READ, self.readcallback, cfg.READ_TIMEOUT ) -- register callback - self:onconnect() + self:onincoming() self.eventsession = nil return -1 end @@ -677,6 +677,7 @@ clientinterface:_start_session( clientinterface.onconnect ) end debug( "accepted incoming client connection from:", ip, port ) + client, err = server:accept() -- try to accept again end return EV_READ