• Russ Cox's avatar
    net: limit number of concurrent cgo calls · 1d3efd65
    Russ Cox authored
    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
    1d3efd65
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...