MCPcopy Create free account
hub / github.com/php/frankenphp / resetGlobals

Function resetGlobals

frankenphp.go:782–793  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

780}
781
782func resetGlobals() {
783 globalMu.Lock()
784 globalCtx = context.Background()
785 globalLogger = slog.Default()
786 workers = nil
787 workersByName = nil
788 workersByPath = nil
789 watcherIsEnabled = false
790 maxIdleTime = defaultMaxIdleTime
791 maxRequestsPerThread = 0
792 globalMu.Unlock()
793}

Callers 2

ShutdownFunction · 0.85
setupGlobalsFunction · 0.85

Calls

no outgoing calls

Tested by 1

setupGlobalsFunction · 0.68