commit | 1d3efd6533773138ac7c9d8ca1314459636d55d2 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Fri Aug 16 22:43:05 2013 -0400 |
committer | Russ Cox <rsc@golang.org> | Fri Aug 16 22:43:05 2013 -0400 |
tree | 4e8efe6ba2bb14aa911296ff799deec998a39241 | |
parent | 665feeedcbef8a1c968d6da5be052e9fd9678380 [diff] |
net: limit number of concurrent cgo calls The limit is 500. There is no way to change it. This primarily affects name resolution. If a million goroutines try to resolve DNS names, only 500 will get to execute cgo calls at a time. But in return the operating system will not crash. Fixes #5625. R=golang-dev, dan.kortschak, r, dvyukov CC=bradfitz, golang-dev https://golang.org/cl/13038043