Top geek's chindogu - personal assistant over satellite/telephone/SMS/chatbot, plus web infrastructure servers (web & mail, ad-free DNS, TCP-over-DNS, web proxy, etc)
Mozilla Public License 2.0
253
stars
23
forks
source link
Occasionally http daemon encounters a panic during initialisation routine #16
As noticed and recovered by supervisor:
panic: http: multiple registrations for / goroutine 384 [running]: net/http.(ServeMux).Handle(0xc4203a94d0, 0xc4200136a8, 0x1, 0x9bd820, 0xc4202b5460) /home/howard/go/src/net/http/server.go:2270 +0x627 net/http.(ServeMux).HandleFunc(0xc4203a94d0, 0xc4200136a8, 0x1, 0xc4202b5460) /home/howard/go/src/net/http/server.go:2302 +0x55 github.com/HouzuoGuo/laitos/daemon/httpd.(Daemon).Initialise(0xc4201326e0, 0xc42047a6f0, 0xc4203263c0) /home/howard/gopath/src/github.com/HouzuoGuo/laitos/daemon/httpd/httpd.go:175 +0x409 github.com/HouzuoGuo/laitos/launcher.Config.GetHTTPD.func1() /home/howard/gopath/src/github.com/HouzuoGuo/laitos/launcher/config.go:308 +0x512 sync.(Once).Do(0xc420419ab0, 0xc4201e2690) /home/howard/go/src/sync/once.go:44 +0xbe github.com/HouzuoGuo/laitos/launcher.Config.GetHTTPD(0xc420000f00, 0xc420013840, 0xb, 0xc42005f400, 0x11, 0x9dd, 0xc420013830, 0x6, 0xc42008c140, 0x45, ...) /home/howard/gopath/src/github.com/HouzuoGuo/laitos/launcher/config.go:206 +0x89 main.main.func2(0xc4203e9140, 0xc420081b00) /home/howard/gopath/src/github.com/HouzuoGuo/laitos/main.go:264 +0x57 created by main.main