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:
@ -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 != "" {
|
||||
|
Reference in New Issue
Block a user