Bunch of updates

This commit is contained in:
Miek Gieben 2013-06-22 21:57:38 +01:00
parent baa7ca4a82
commit 8bf7e3c986
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ func NewRR(s string) dns.RR {
}
func main() {
runtime.GOMAXPROCS(runtime.NumCPU()*2 + 1)
runtime.GOMAXPROCS(runtime.NumCPU() * 4)
for z, rr := range zones {
rrx := rr.(*dns.SOA) // Some foo needed to created actual RR, on the not a reference
dns.HandleFunc(z, func(w dns.ResponseWriter, r *dns.Msg) {

View File

@ -161,7 +161,7 @@ func serve(net, name, secret string) {
}
func main() {
runtime.GOMAXPROCS(runtime.NumCPU()*2 + 1)
runtime.GOMAXPROCS(runtime.NumCPU()*4)
cpuprofile := flag.String("cpuprofile", "", "write cpu profile to file")
printf = flag.Bool("print", false, "print replies")
compress = flag.Bool("compress", false, "compress replies")