Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Can't disable preload for CLI daemon #1529

Closed
@victorb

Description

@victorb

Type:

Bug

Severity:

Low

Description:

Can't disable preloading when running the daemon via the CLI. Even with preload.enabled set to false, the daemon seems to not respect it and when adding data, automatically does the preloading requests.

Steps to reproduce the error:

$ export IPFS_PATH=/tmp/tmp.1MVJtmJWT0
$ node src/cli/bin.js init
$ node src/cli/bin.js config --bool preload.enabled false
$ node src/cli/bin.js config preload.enabled
false
$ jq .preload $IPFS_PATH/config
{
  "enabled": false
}

$ # run daemon with debug to see if preloading is happening
$ DEBUG=jsipfs:preload node src/cli/bin.js daemon

Now in new terminal window

$ export IPFS_PATH=/tmp/tmp.1MVJtmJWT0
$ node src/cli/bin.js add -r node_modules/async # can be anything, just add it

And look back in the first terminal window, there will be bunch of preloading happening, even though preloading is supposed to be off.

Metadata

Metadata

Assignees

Labels

P3Low: Not priority right nowexp/expertHaving worked on the specific codebase is importanthelp wantedSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions