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
2016-09-05Handle no-arg server.destroy(), fixes #899DC
2016-09-05Fix server.close, fixes #900DC
2016-08-21better debug idFeross Aboukhadijeh
2016-08-19Prevent possible stack overflowFeross Aboukhadijeh
See https://github.com/feross/run-parallel-limit/issues/5
2016-08-04Add options to disable autoplay/hide controlsFeross Aboukhadijeh
Fix #878.
2016-07-28Allow entire torrent deselect() to be called earlierFeross Aboukhadijeh
// Remove default selection (whole torrent) torrent.deselect(0, torrent.pieces.length - 1, false) Can now be called earlier, after 'metadata' instead of after 'ready' https://github.com/feross/webtorrent/issues/857#issuecomment-236022556
2016-07-27Clarify 'error' event handling in docsFeross Aboukhadijeh
2016-07-26Use discovery.complete() APIFeross Aboukhadijeh
2016-06-22WebTorrent http server: Fix HEAD requestsFeross Aboukhadijeh
Don't send the entire response body
2016-06-15API: Add file.getBlob() methodFeross Aboukhadijeh
Get a W3C `Blob` object which contains the file data. The file will be fetched from the network with highest priority, and `callback` will be called once the file is ready. `callback` must be specified, and will be called with a an `Error` (or `null`) and the `Blob` object.
2016-06-12Fixes for PR #834Feross Aboukhadijeh
2016-06-12Update tcp-pool.jsDiego Rodríguez Baquero
Prevent arrayRemove if the pool is already destroyed. Fixes possible error `TypeError: Cannot read property 'indexOf' of null`
2016-06-11Use < since it handles NaN in a predictable way, i.e. falseFeross Aboukhadijeh
2016-06-11Support torrent with a single 0 byte fileFeross Aboukhadijeh
2016-05-30Use safe-bufferFeross Aboukhadijeh
Use the new Buffer APIs from Node v6 for added security. For example, Buffer.from() will throw if passed a number, unlike Buffer() which allocated UNINITIALIZED memory. Use the safe-buffer package for compatibility with previous versions of Node.js, including v4.x, v0.12, and v0.10. https://github.com/feross/safe-buffer
2016-05-29Fix exception in file.jsFeross Aboukhadijeh
If file is destroyed and stream ends afterwards, then an exception is thrown because self._torrent is undefined.
2016-05-20fix silly errorsFeross Aboukhadijeh
2016-05-20Make user agent strings consistentFeross Aboukhadijeh
2016-05-20xs params: show status code in error logFeross Aboukhadijeh
2016-05-19Fixes for PR #799Feross Aboukhadijeh
- Support multiple &xs= params in parallel - Fail on 'error' 'warning' events
2016-05-19Merge pull request #799 from Sebmaster/feature/magnet-xsFeross Aboukhadijeh
Implement exact source (xs) for magnet URIs
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-05-17Implement exact source (xs) for magnet URIsSebastian Mayr
2016-05-11On duplicate torrent add, don't emit 'infoHash'Feross Aboukhadijeh
Private 'infoHash' event allows client.add to check for duplicate torrents and destroy them before the normal 'infoHash' event is emitted. Prevents user applications from needing to deal with duplicate 'infoHash' events.
2016-05-08remove path-existsFeross Aboukhadijeh
2016-05-08Move tracker options into `opts.tracker`Feross Aboukhadijeh
Closes #649 Based on a PR by @nkittsteiner. #791
2016-05-05Merge pull request #775 from harperj/no-peersFeross Aboukhadijeh
Add 'noPeers' event to torrents
2016-05-05torrent.pause: Fix peer._destroy is not a functionFeross Aboukhadijeh
Closes #784
2016-05-04fix `torrent.swarm` usageFeross Aboukhadijeh
Closes https://github.com/feross/instant.io/issues/109
2016-04-27Update 'noPeers' to stop using deprecated 'torrent.swarm'Jonathan Harper
2016-04-27Torrent emits 'noPeers' even when swarm is empty after announceJonathan Harper
2016-04-24standardFeross Aboukhadijeh
2016-04-24make `torrent.swarm` workFeross Aboukhadijeh
2016-04-24emit 'done' after tracker 'complete' is sentFeross Aboukhadijeh
Fix CLI crash
2016-04-21fix more bugsFeross Aboukhadijeh
2016-04-21Fix one more peer leakFeross Aboukhadijeh
2016-04-21Fix exceptionsFeross Aboukhadijeh
2016-04-21use simple-concatFeross Aboukhadijeh
2016-04-21client: cleanup event listenersFeross Aboukhadijeh
2016-04-21More thorough object cleanupFeross Aboukhadijeh
- Only pass `torrent.infoHash` to the Chunk Store constructor, instead of the `Torrent` instance itself, to prevent accidental memory leaks of the `Torrent` object by the store. (Open an issue if you were using other properties. They can be re-added.) - Non-fatal errors with a single torrent will be emitted at `torrent.on('error')`. You should listen to this event. Previously, all torrent errors were also emitted on `client.on('error')` and handling `torrent.on('error')` was optional. This design is better since now it is possible to distinguish between fatal client errors (`client.on('error')`) when the whole client becomes unusable versus recoverable errors where only a single torrent fails (`torrent.on('error')`) but the client can continue to be used. However, if there is no `torrent.on('error')` event, then the error will be forwarded to `client.on('error')`. This prevents crashing the client when the user only has a listener on the client, but it makes it impossible for them to determine a client error versus a torrent error. - Errors creating a torrent with `client.seed` are now emitted on the returned `torrent` object instead of the client (unless there is no event listeners on `torrent.on('error')` as previously discussed). The torrent object is now also destroyed automatically for the user, as was probably expected. - If `client.get` is passed a `Torrent` instance, it now only returns it if it is present in the client.
2016-04-21cleanup torrent reference leaksFeross Aboukhadijeh
2016-04-21move method comments to api docFeross Aboukhadijeh
2016-04-21torrent: remove _onError, add _destroy(err, cb)Feross Aboukhadijeh
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-06Base web seed pipeline length on piece lengthFeross Aboukhadijeh
Before this, the web seed pipeline length was based on the block size, just like it is for wire connections, which are block-based. This meant that we were massively over-estimating the number of http requests to make to the web seed servers. Now we use the piece length, since each web seed request is a piece length in size.
2016-04-06Merge pull request #710 from feross/max-web-conns-defaultFeross Aboukhadijeh
Max web conns default
2016-04-06Fix ENOENT error when one file is missing from filesystemFeross Aboukhadijeh
Fixes https://github.com/feross/webtorrent-desktop/issues/311
2016-04-06do not request pieces until store is readyFeross Aboukhadijeh
Fixes regression introduced in #715
2016-04-03Merge branch 'master' into max-web-conns-defaultDiego Rodríguez Baquero
2016-04-02Fixes for PR #715Feross Aboukhadijeh