()
| 48 | ) |
| 49 | |
| 50 | func 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 | |
| 72 | type endlessServer struct { |
| 73 | http.Server |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…