Esempio n. 1
0
func Startup() {
	// Start processing goroutine.
	go process()

	// Start accepting change request connections.
	go connect.Listen(connect.RELAY_PROTOCOL, incomingConn)
}
Esempio n. 2
0
func Startup() {
	store.StartTransaction()
	defer store.EndTransaction()
	sessionsLock.Lock()
	defer sessionsLock.Unlock()

	// If undegraded, check for attached users with no session,
	// or nameless users in the store.
	if !store.Degraded() {
		checkOrphanAttaches()
		checkNameless()
	}

	// Start accepting client protocol connections.
	go connect.Listen(connect.CLIENT_PROTOCOL, incomingConn)
}