Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in DHT's LRU module #592

Closed
oleiba opened this issue Feb 2, 2016 · 2 comments
Closed

Error in DHT's LRU module #592

oleiba opened this issue Feb 2, 2016 · 2 comments
Labels
bug

Comments

@oleiba
Copy link

@oleiba oleiba commented Feb 2, 2016

Hi, I'm deploying a bittorrent client on top on latest webtorrent version 0.72.2.
Use case: I'm seeding hundreds of files (each under 1MB), and after seeding ~500 files sequentially (which takes about an hour) I get this error:
/var/app/current/node_modules/cc-metadata-handler/node_modules/webtorrent/node_modules/bittorrent-dht/node_modules/lru/index.js:25 if(element.prev) this.cache[element.prev].next = element.next; ^ TypeError: Cannot set property 'next' of undefined at LRU.remove (/var/app/current/node_modules/cc-metadata-handler/node_modules/webtorrent/node_modules/bittorrent-dht/node_modules/lru/index.js:25:56) at LRU.get (/var/app/current/node_modules/cc-metadata-handler/node_modules/webtorrent/node_modules/bittorrent-dht/node_modules/lru/index.js:84:14) at DHT.announce (/var/app/current/node_modules/cc-metadata-handler/node_modules/webtorrent/node_modules/bittorrent-dht/client.js:259:28) at Discovery._dhtAnnounce (/var/app/current/node_modules/cc-metadata-handler/node_modules/webtorrent/node_modules/torrent-discovery/index.js:166:12) at null._onTimeout (/var/app/current/node_modules/cc-metadata-handler/node_modules/webtorrent/node_modules/torrent-discovery/index.js:176:10) at Timer.listOnTimeout (timers.js:119:15)

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Feb 7, 2016

Closing, since this is already being tracked here: webtorrent/bittorrent-dht#110.

@feross feross closed this Feb 7, 2016
@feross feross added the bug label Feb 7, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.