net/server_select.lua
changeset 9388 58fe099043ed
parent 8986 23f66f04e216
child 9390 33e52f727f0f
--- a/net/server_select.lua	Wed Sep 26 14:57:09 2018 +0200
+++ b/net/server_select.lua	Wed Sep 26 14:25:59 2018 +0200
@@ -331,6 +331,9 @@
 		drain = listeners.ondrain
 		handler.onreadtimeout = listeners.onreadtimeout
 		detach = listeners.ondetach
+		if listeners.onattach then
+			listeners.onattach(self)
+		end
 	end
 	handler.getstats = function( )
 		return readtraffic, sendtraffic