Merge remote-tracking branch 'upstream/master' into 11_http_interface

Conflicts:
	consts.go
	weaver/weave
This commit is contained in:
Bryan Boreham committed 2014-09-04 13:02:14 +01:00
commit 43d8781fdd
11 files changed
+385 -177

No files matched your search

+7 -1
View File
@@ -47,7 +47,13 @@ func main() {
log.SetPrefix(weave.Protocol + " ")
log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds)
runtime.GOMAXPROCS(runtime.NumCPU())
procs := runtime.NumCPU()
// packet sniffing can block an OS thread, so we need one thread
// for that plus at least one more.
if procs < 2 {
procs = 2
}
runtime.GOMAXPROCS(procs)
var (
ifaceName string