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
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.