MCPcopy Create free account
hub / github.com/fvbock/endless / init

Function init

endless.go:50–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48)
49
50func init() {
51 runningServerReg = sync.RWMutex{}
52 runningServers = make(map[string]*endlessServer)
53 runningServersOrder = []string{}
54 socketPtrOffsetMap = make(map[string]uint)
55
56 DefaultMaxHeaderBytes = 0 // use http.DefaultMaxHeaderBytes - which currently is 1 << 20 (1MB)
57
58 // after a restart the parent will finish ongoing requests before
59 // shutting down. set to a negative value to disable
60 DefaultHammerTime = 60 * time.Second
61
62 hookableSignals = []os.Signal{
63 syscall.SIGHUP,
64 syscall.SIGUSR1,
65 syscall.SIGUSR2,
66 syscall.SIGINT,
67 syscall.SIGTERM,
68 syscall.SIGTSTP,
69 }
70}
71
72type endlessServer struct {
73 http.Server

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…