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
AgeCommit message (Collapse)Author
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-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-11fix: modernize code (#2134)Diego Rodríguez Baquero
* fix: modernize code * standard fix
2021-04-13remove leaked event listenersFeross Aboukhadijeh
2021-02-26Allow passing a custom connection object to torrent.addWebSeedJohn Hiesey
2020-10-03PR review improvementsJulen Garcia Leunda
2020-10-02Add uTP support (BEP29)Julen Garcia Leunda
2018-08-31Fix standard errorsDiego Rodríguez
2018-08-31Modernize lib/peer.jsDiego Rodríguez
2018-08-10Small debugging improvementsJohn Hiesey
2018-04-27Ensure both remoteAddress and remotePort exist before using itFeross Aboukhadijeh
2016-05-18Fix exception caused by race conditionFeross Aboukhadijeh
If a peer disconnects, but the handshake they already sent hasn't been processed by the wire yet (rare!) then onHandshake could be called after the peer is destroyed. At this point self.wire is `null`, so that will get pushed into the self.swarm.wires array and cause this issue: https://github.com/feross/webtorrent/issues/792 Closes #792.
2016-04-21BREAKING: Major cleanupFeross Aboukhadijeh
### Added - `client.listening` property to signal whether TCP server is listening for incoming connections. ### Changed - Merged `Swarm` class into `Torrent` object. Properties on `torrent.swarm` (like `torrent.swarm.wires`) now exist on `torrent` (e.g. `torrent.wires`). - `torrent.addPeer` can no longer be called before the `infoHash` event has been emitted. - Remove `torrent.on('listening')` event. Use `client.on('listening')` instead. - Remove support from `TCPPool` for listening on multiple ports. This was not used by WebTorrent and just added complexity. There is now a single `TCPPool` instance for the whole WebTorrent client. - Deprecate: Do not use `client.download()` anymore. Use `client.add()` instead. - Deprecate: Do not use `torrent.swarm` anymore. Use `torrent` instead. ### Fixed - When there is a `torrent.on('error')` listener, don't also emit `client.on('error')`. - Do not return existing torrent object when duplicate torrent is added. Fire an `'error'` event instead. - Memory leak of `Torrent` object caused by `RarityMap` - Memory leak of `Torrent` object caused by `TCPPool` - `client.ratio` and `torrent.ratio` are now calculated as `uploaded / received` instead of `uploaded / downloaded`.
2016-04-02fix: reversed tcp/webrtc timeoutsFeross Aboukhadijeh
2016-03-29Replace expensive arr.splice() with unordered-array-remove in hot codeFeross Aboukhadijeh
For https://github.com/feross/webtorrent-desktop/issues/256
2016-03-29Shorter connect timeout for TCP peersFeross Aboukhadijeh
This restores the older timeout for TCP peers, which was originally increased as a workaround to give enough time for WebRTC peers. Supersedes https://github.com/feross/bittorrent-swarm/pull/21
2016-03-29rename connect timeout methodsFeross Aboukhadijeh
2016-03-29Deprecate bittorrent-swarm, inline into webtorrentFeross Aboukhadijeh
bittorrent-swarm and the Torrent object in webtorrent are very coupled. It doesn't make much sense to publish them separately, as bittorrent-swarm can't be used independently.