62
62
// DevicesRunner returns a function to accept device connections.
63
63
// If adoptLst is not nil it will be used as the underlying listener, instead
64
64
// of creating one, wrapped in a TLS layer.
65
func DevicesRunner(adoptLst net.Listener, session func(net.Conn) error, logger logger.Logger, parsedCfg *DevicesParsedConfig) func() {
65
func DevicesRunner(adoptLst net.Listener, session func(net.Conn) error, logger logger.Logger, resource listener.SessionResourceManager, parsedCfg *DevicesParsedConfig) func() {
66
66
BootLogger.Debugf("PingInterval: %s, ExchangeTimeout %s", parsedCfg.PingInterval(), parsedCfg.ExchangeTimeout())
68
68
err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlim)