Age | Commit message (Collapse) | Author |
|
fixes deprecation warnings
|
|
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
|
|
|
|
|
|
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()`.
|
|
|
|
Emit more warnings
|
|
Set user-agent header for http tracker requests
|
|
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
|
|
|
|
Fixes: https://github.com/feross/webtorrent/issues/962
|
|
|
|
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
|
|
|
|
|
|
Fixes: #920
|
|
|
|
|
|
|
|
|
|
See https://github.com/feross/run-parallel-limit/issues/5
|
|
Fix #878.
|
|
// 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
|
|
|
|
|
|
Don't send the entire response body
|
|
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.
|
|
|
|
Prevent arrayRemove if the pool is already destroyed. Fixes possible error `TypeError: Cannot read property 'indexOf' of null`
|
|
|
|
|
|
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
|
|
If file is destroyed and stream ends afterwards, then an exception is
thrown because self._torrent is undefined.
|
|
|
|
|
|
|
|
- Support multiple &xs= params in parallel
- Fail on 'error' 'warning' events
|
|
Implement exact source (xs) for magnet URIs
|
|
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.
|
|
|
|
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.
|
|
|
|
Closes #649
Based on a PR by @nkittsteiner. #791
|
|
Add 'noPeers' event to torrents
|
|
Closes #784
|
|
Closes https://github.com/feross/instant.io/issues/109
|
|
|
|
|
|
|
|
|