raise file descriptor limit to 1024 by default
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
Jeromy committed
Jun 21, 2016 at 11:31 UTC
deecc5dd7fad6b8a5d6c6da36ceff1b676bc376a
2 files changed
+2
-2
cmd/ipfs/daemon.go
+1
-1
@@ -137,7 +137,7 @@ Headers.
137
cmds.BoolOption(unrestrictedApiAccessKwd, "This option has no effect since v0.4.3").Default(false),
138
cmds.BoolOption(unencryptTransportKwd, "Disable transport encryption (for debugging protocols)").Default(false),
139
cmds.BoolOption(enableGCKwd, "Enable automatic periodic repo garbage collection").Default(false),
140
- cmds.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed").Default(false),
140
+ cmds.BoolOption(adjustFDLimitKwd, "Check and raise file descriptor limits if needed").Default(true),
141
cmds.BoolOption(offlineKwd, "Run offline. Do not connect to the rest of the network but provide local API.").Default(false),
142
143
// TODO: add way to override addresses. tricky part: updating the config if also --init.
cmd/ipfs/ulimit_unix.go
+1
-1
@@ -9,7 +9,7 @@ import (
9
"syscall"
10
)
11
12
-var ipfsFileDescNum = uint64(2048)
12
+var ipfsFileDescNum = uint64(1024)
13
14
func init() {
15
if val := os.Getenv("IPFS_FD_MAX"); val != "" {