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.

ipfs.stop leaves process hanging #1168

Closed
@alanshaw

Description

@alanshaw
  • Version: 0.27.5
  • Platform: Node.js
  • Subsystem: n/a

Type:

Bug

Severity:

High

Description:

ipfs.stop(cb) calls cb but does not completely stop the node.

wtfnode says that the following interval is still active:

- Intervals:
  - (3600000 ~ 60 min) (anonymous) @ /Users/alan/Code/protocol-labs/ipfs-postmsg-proxy/node_modules/libp2p-kad-dht/src/providers.js:203

Note libp2p-kad-dht/src/providers.js:203 sets up a function to "cleanup" every hour, but this cannot be canceled.

Steps to reproduce the error:

Create a new js-ipfs instance and call stop, your Node.js process will not exit.

Metadata

Metadata

Labels

P1High: Likely tackled by core team if no one steps upexp/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