func init() { netlib.RegisteSessionFilterCreator(ConnectionThrottleFilterName, func() netlib.SessionFilter { return &ConnectionThrottleFilter{clients: container.NewSynchronizedMap(), AllowedInterval: DefaultAllowedInterval} }) }
func (s *Session) init() { s.sendBuffer = make(chan interface{}, s.sc.MaxPend) s.recvBuffer = make(chan *action, s.sc.MaxDone) s.attributes = container.NewSynchronizedMap() }