Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2022-09-02Merge pull request #2349 from ThaUnknown/multistreamCas
fix: drop multi-stream
2022-09-02Merge pull request #2339 from ThaUnknown/streamxCas
fix: use streamx instead of stream
2022-07-04fix: drop multi-streamThaUnknown
2022-07-04fix: dedupe packagesThaUnknown
2022-06-26fix: null opts causing errorThaUnknown
2022-06-26fix: use streamx instead of streamThaUnknown
2022-06-23fix: support stream cancelling (#2335)Cas
2022-05-11fix: measure transfer rates without using timeouts (#2314)Cas
2022-04-22chore: standard 17Diego Rodriguez Baquero
2022-03-27refactor: trigger _onWireWithMetadata after selections are updated (#2103)Alex
Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
2022-03-27fix: web seed request URLs (#2267)Justin Lewis Salmon
* fix: web seed request URLs When adding a multi torrent file (not magnet link) which has only web seeds, the torrent fails to download because webtorrent seems to try to call the wrong URL. Suppose that we are using the default download path of `/tmp/webtorrent`, and we have a web seed at `https://some-s3-bucket.s3.amazonaws.com/my-torrent` where `my-torrent` contains some nested directory structure like this: ``` my-torrent/ file1.txt file2/ file2.txt ``` Webtorrent will attempt to fetch the following URLs: ``` https://some-s3-bucket.s3.amazonaws.com/my-torrent//tmp/webtorrent/my-torrent/file1.txt https://some-s3-bucket.s3.amazonaws.com/my-torrent//tmp/webtorrent/my-torrent/file2/file2.txt ``` This is obviously incorrect, but perhaps I'm doing something wrong to cause this. I dug through the code, and it seems that `fs-chunk-store` is [modifying `file.path`](https://github.com/webtorrent/fs-chunk-store/blob/master/index.js#L48) when the [chunk store is created](https://github.com/webtorrent/webtorrent/blob/master/lib/torrent.js#L485). Stripping off the temp path fixes this issue and the download progresses as expected. * Update lib/webconn.js Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com> Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
2022-03-25refactor: replace deprecated String.prototype.substr() (#2282)CommanderRoot
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-01-20feat: add reqq field support (#2246)Paul-Louis Ageneau
2022-01-18feat: add BEP6 Fast Extension support (#2243)Paul-Louis Ageneau
* chore: bump bittorrent-protocol to ^3.5.0 * feat: implement BEP6 Fast Extension
2021-10-26fix: Prep for esm (#2205)Jimmy Wärting
* prep for esm * update min req node vers * revert node prefix
2021-10-25fix: add storeOpts, specify store path, align with docs (#2121)Cas
* fix: add storeOpts, specify store path, align with docs * make changes non-breaking by default * debatable documentation update * add torrent name to store name * reduce hash name * Update lib/torrent.js * fix filegetmodtimes * bump fs chunk store Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
2021-08-26fix: handle done event when new files selected (#2183)Julen Garcia Leunda
2021-08-20feat: add service worker server as an alternative to renderMedia (#2098)Cas
* feat: add service worker server as an alternative to renderMedia * code QL * thanks gh auto merge Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
2021-08-17feat: Add PE/MSE support (#1820)Ivan Borzenkov
* reimplement #1384 * add option for secure - performance issue * fixes after code review * fix error * use const in hex * use stored hash * Update lib/peer.js Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com> * fix const Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
2021-07-24feat: add speed limit to client (#2062)Alex
* Add speed limit to client * Fix standard * Update docs/api.md * Add changes from PR feedback Co-authored-by: Kadu Diógenes <kadu@fnix.com.br> Co-authored-by: Ivan Gorbanev <ivang@van.work> Co-authored-by: ultimate-tester <jordimueters@hotmail.com> Co-authored-by: Julen Garcia Leunda <hicom150@gmail.com> Co-authored-by: Niklas Johansson <niklas.y.johansson@se.abb.com> Co-authored-by: ThaUnknown <kapi.skowronek@gmail.com> Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
2021-07-14fix: call public FileStream.destroy method so cb is defined (#2135)John Hiesey
Previously, early exits in FileStream._notify would throw since cb was not defined in _destroy
2021-07-13fix: store.put is async and might fail (#2006)ftrees
* store.put is async and might fail * Remove retry logic for now Co-authored-by: John Hiesey <john@hiesey.com>
2021-07-11fix: modernize code (#2134)Diego Rodríguez Baquero
* fix: modernize code * standard fix
2021-07-10feat: support adding paused torrents. (#2004)nkavian
* Support adding paused torrents. * chore: use arrows, because semantic Co-authored-by: Nas Kavian <> Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
2021-07-06fix: ensure uTP peer address is IPv4 (#2125)Julen Garcia Leunda
2021-07-03fix: Cleanup duplicated deselect() code (#2113)Feross Aboukhadijeh
The fileStream._destroy() function would never run because when fileStream.destroy() is called then it sets a 'destroyed' getter to true, which shadows our own fileStream.destroyed property. The code outside running eos() was reaching into fileStream internals, so I just moved it in there.
2021-06-30feat: Use a cache on the chunk store (#2095)John Hiesey
2021-06-30fix: remove deprecated functionality (#2118)Cas
2021-06-17fix: make utp-native optional (#1966)Julen Garcia Leunda
* Add optional utp-native * Add error log when uTP cannot be loaded * Fix review suggestions * Remove an additional require call Co-authored-by: Alex <alxmorais8@msn.com>
2021-05-21fix: getAnnounceOpts (#2075)Alex
2021-05-08Merge pull request #2018 from jimmywarting/setDiego Rodríguez Baquero
Made 3 arrays into a set
2021-04-21FileStream: remove onclose argument to destroy()Feross Aboukhadijeh
This is a non-standard interface and it's confusing. It caused a bug in https://wormhole.app
2021-04-14Merge pull request #2025 from jhiesey/lt_donthaveFeross Aboukhadijeh
2021-04-14Add timeouts and retry inside webconnJohn Hiesey
2021-04-13Make file.downloaded getter not throw when destroyedJohn Hiesey
2021-04-13remove leaked event listenersFeross Aboukhadijeh
2021-04-09Add lt_donthaveJohn Hiesey
2021-04-01guard against exception from buffer being undefinedFeross Aboukhadijeh
2021-03-25Add opts.destroyStoreOnDestroy to torrentJohn Hiesey
2021-03-20Made two array into a setJimmy Wärting
2021-03-18Change filesystem concurrency to number of cpusFeross Aboukhadijeh
Makes the EventEmitter warning show up less often, and avoids running potentially 100s or 1000s of chunkStore.get() calls concurrently in _verifyPieces
2021-03-09Only pass length to store.get when definedJohn Hiesey
2021-03-05Destroy torrent if putting into store failsJohn Hiesey
2021-03-02Fix file progress sometimes < 0 and > 1Feross Aboukhadijeh
Code reviewed by @jhiesey
2021-02-27Code review fixesJohn Hiesey
2021-02-26Allow passing a custom connection object to torrent.addWebSeedJohn Hiesey
2021-02-11always print "piece verified" debug log in _verifyPiecesFeross Aboukhadijeh
2021-02-10Support opts.preloadedStore in webtorrent.seedJohn Hiesey
2021-01-29correctly calculate file downloaded progressFeross Aboukhadijeh
2021-01-27fix queuemicrotask usageFeross Aboukhadijeh