提交 c98bf9a1 作者: Jeromy Johnson 提交者: GitHub

Merge pull request #2884 from ipfs/feat/default-fd-bump

raise file descriptor limit to 1024 by default
......@@ -137,7 +137,7 @@ Headers.
cmds.BoolOption(unrestrictedApiAccessKwd, "This option has no effect since v0.4.3").Default(false),
cmds.BoolOption(unencryptTransportKwd, "Disable transport encryption (for debugging protocols)").Default(false),
cmds.BoolOption(enableGCKwd, "Enable automatic periodic repo garbage collection").Default(false),
cmds.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed").Default(false),
cmds.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed").Default(true),
cmds.BoolOption(offlineKwd, "Run offline. Do not connect to the rest of the network but provide local API.").Default(false),
// TODO: add way to override addresses. tricky part: updating the config if also --init.
......
......@@ -9,7 +9,7 @@ import (
"syscall"
)
var ipfsFileDescNum = uint64(2048)
var ipfsFileDescNum = uint64(1024)
func init() {
if val := os.Getenv("IPFS_FD_MAX"); val != "" {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论