webtorrent / webtorrent

⚡️ Streaming torrent client for the web
https://webtorrent.io
MIT License
29.68k stars 2.72k forks source link

Error with multiple file descriptor opens #2881

Open EugenPrinz opened 3 weeks ago

EugenPrinz commented 3 weeks ago

I'm encountering an issue with file descriptors when using WebTorrent version 2.5.1 on Windows 11. Specifically, I get the following error when handling multiple file descriptors:

{
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'PATH_FILE'
}

I have more than 10k files in one torrent file.

I’m wondering if implementing a custom chunk-store would mitigate this issue?

WebTorrent version: 2.5.1 OS: Windows 11 Node.js version: 21.5.0 npm version: 10.2.4

SilentBot1 commented 1 day ago

Hey @EugenPrinz,

Are you able to provide minimal steps to replicate this issue?

Are you simply downloading or seeding a torrent which has >10k files, or doing anything else in specific?