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
2017-02-12change os.tmpDir() to os.tmpdir()William
fixes deprecation warnings
2017-02-10Refactor http server; support content-dispositionFeross Aboukhadijeh
Refactored the server into many smaller functions to make it easier to understand all the different code paths. - added a Content-Disposition header, which tells the browser the file's name, since we use urls like http://localhost:port/0 <-- no human-readable file name - Server returns valid HTML documents (with all the required tags) now. - Return 204 status for OPTIONS request - reduce access-control-max-age to chromium max of 600s - respond to OPTIONS requests that lack 'access-control-request-headers' (before they were treated as GET) - return '405 invalid verb' for all other verbs For: https://github.com/brave/browser-laptop/issues/6737
2017-02-03Don't print debug log after torrent is destroyedFeross Aboukhadijeh
2017-02-03Be more defensive: prevent code from running after destroyFeross Aboukhadijeh
2017-02-03Fix "Cannot read property 'complete' of null"Feross Aboukhadijeh
Fixes: https://github.com/feross/webtorrent/issues/1022 We also check `self.destroyed` since `torrent.destroy()` could have been called in the `torrent.on('done')` handler, triggered by `_checkDone()`.
2017-02-03include infoHash in torrent.js debug logsFeross Aboukhadijeh
2017-01-20Merge pull request #1021 from feross/emit-more-warningsFeross Aboukhadijeh
Emit more warnings
2017-01-20Merge pull request #1019 from feross/fix-962Feross Aboukhadijeh
Set user-agent header for http tracker requests
2017-01-19Emit more warningsFeross Aboukhadijeh
Convert some debug statements that could be useful for an API user (either because they want to show to the user, or to react to the warning in some way) Fixes https://github.com/feross/webtorrent/issues/960
2017-01-18Address feross's feedbackFeross Aboukhadijeh
2017-01-18Set user-agent header for http tracker requestsFeross Aboukhadijeh
Fixes: https://github.com/feross/webtorrent/issues/962
2016-12-06don't emit 'completed' on client.seedSidd Sridharan
2016-11-28Do not choke on web seeds (#972)George Petrov
Web seeds should be considered as pure unchecked seeds according to BEP19 So we should never choke on them. Otherwise when there are no other seeds, the downloads will hang
2016-11-10Adding property for downloaded bytes per file.Mikeal Rogers
2016-10-13Cross-origin HTTP redirect workaround (#909)Jack Bates
2016-09-18server: Handle invalid range handers instead of throwing (#921)Feross Aboukhadijeh
Fixes: #920
2016-09-17Option to disable BEP19 web seedsDC
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