1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-25 15:08:45 +08:00

raise file descriptor limit to 1024 by default

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
Jeromy
2016-06-21 11:31:14 -07:00
parent 7d18f74879
commit deecc5dd7f
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -9,7 +9,7 @@ import (
"syscall"
)
var ipfsFileDescNum = uint64(2048)
var ipfsFileDescNum = uint64(1024)
func init() {
if val := os.Getenv("IPFS_FD_MAX"); val != "" {