Commit Graph

377 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
b3ea3f73aa 2.11.0 2015-01-22 14:14:51 -08:00
Feross Aboukhadijeh
3fd782b4cd parse-torrent@3 2015-01-22 14:14:15 -08:00
Feross Aboukhadijeh
ab9caa3570 bn.js@1 2015-01-22 14:14:10 -08:00
Feross Aboukhadijeh
255395e215 Merge pull request #55 from n1t0/master
[Client] Add https support
2015-01-22 14:11:04 -08:00
Anthony MOI
aee4211b7d use url to parse announceUrl 2015-01-22 14:00:24 +01:00
Anthony MOI
e55896e268 Add https support 2015-01-22 13:29:50 +01:00
Feross Aboukhadijeh
dc533f1e7d 2.10.3 2015-01-05 20:12:43 -08:00
Feross Aboukhadijeh
2631afbf1e Merge pull request #53 from feross/fix-interval
server: fix interval unit
2015-01-05 20:12:13 -08:00
Astro
2b8423b04a server: fix interval unit 2015-01-05 19:55:58 +01:00
Feross Aboukhadijeh
344b493adb 2.10.2 2014-12-22 02:17:12 -08:00
Feross Aboukhadijeh
45ea7d2d01 magnet-uri@4 2014-12-22 02:16:51 -08:00
Feross Aboukhadijeh
db08b5131f portfinder@0.3 2014-12-22 02:16:47 -08:00
Feross Aboukhadijeh
9f96b004e0 bn.js@0.16 2014-12-22 02:16:41 -08:00
Feross Aboukhadijeh
15a1042048 extend.js@0.0.2 2014-12-22 02:15:58 -08:00
Feross Aboukhadijeh
f867de47b4 2.10.1 2014-12-22 01:26:58 -08:00
Feross Aboukhadijeh
943223dfa6 Merge pull request #52 from feross/encode-special-chars
encode special characters @*/+ in http tracker urls
2014-12-22 01:26:13 -08:00
Feross Aboukhadijeh
69211515c2 encode special characters @*/+ in http tracker urls
Fixes https://github.com/feross/webtorrent/issues/196
2014-12-17 21:18:46 -08:00
Feross Aboukhadijeh
538bb3e20a include additional debug information 2014-12-17 21:17:58 -08:00
Feross Aboukhadijeh
04d50cf021 2.10.0 2014-12-13 15:20:26 -08:00
Feross Aboukhadijeh
655d2b5be6 Merge pull request #51 from feross/public-onUdpRequest
server: make onUdpRequest() part of public API
2014-12-13 15:19:41 -08:00
Astro
243c94e3d0 server: make onUdpRequest() part of public API
As per https://github.com/feross/bittorrent-tracker/pull/48#issuecomment-66893626
2014-12-14 00:12:21 +01:00
Feross Aboukhadijeh
e6033db541 Merge branch 'server-ipv6' 2014-12-13 14:35:59 -08:00
Feross Aboukhadijeh
83b4ecc7f5 Merge branch 'master' into server-ipv6
Conflicts:
	server.js
2014-12-13 14:35:29 -08:00
Feross Aboukhadijeh
37203fb7a6 Merge pull request #49 from feross/reuse-udp
Server: reuse UDP socket
2014-12-13 14:17:21 -08:00
Feross Aboukhadijeh
ed0dad4656 Merge pull request #48 from feross/public-onHttpRequest
onHttpRequest() as part of the public API
2014-12-13 14:12:26 -08:00
Feross Aboukhadijeh
272a867237 Merge pull request #47 from feross/hex
Use hex info_hash and peer_id throughout
2014-12-13 14:11:34 -08:00
Astro
d79bf92db0 server: ipv6 support 2014-12-13 00:12:47 +01:00
Astro
80da7c50d0 server: reuse udp socket for responses
Reasons:
* Save file-descriptors
* Support clients behind NAT
2014-12-12 17:27:03 +01:00
Astro
2f7a7131d0 server: make onHttpRequest() part of public API 2014-12-12 16:52:13 +01:00
Astro
3b4b487c2c examples/express-embed 2014-12-12 16:51:37 +01:00
Feross Aboukhadijeh
79068a49cf Use hex info_hash and peer_id throughout 2014-12-12 02:02:11 -08:00
Astro
991363a28c Revert "server _onHttpRequest(): ensure non-empty params"
This reverts commit 74d9139049.

Conflicts:
	server.js

feross commented on 74d9139 5 hours ago
> Do we need to check for empty params here?
>
> _onRequest should return an error via callback because
> params.action is missing. Won't that work?
74d9139049 (commitcomment-8937428)
2014-12-12 02:57:01 +01:00
Feross Aboukhadijeh
66b71db8f5 Merge pull request #46 from feross/astro-fixes
swarm.announce() should always call callback
2014-12-11 17:45:51 -08:00
Feross Aboukhadijeh
c75ca05479 swarm.announce() should always call callback
It’s important that calls to swarm.announce() always calls the callback
that it’s passed otherwise http announce/scrape requests
will hang (because res.end() is never called).

Also, since this swarm implementation is in-memory, we can get rid of
the callbacks to internal functions.

Lastly, fixed references to non-existent start() function.
2014-12-11 13:43:11 -08:00
Feross Aboukhadijeh
edb5c6e854 code style 2014-12-11 12:53:39 -08:00
Feross Aboukhadijeh
20cb18272e Merge pull request #45 from feross/refactor
Refactor the server-side code
2014-12-11 12:38:32 -08:00
Astro
c97e4236f4 server parseHttpRequest(): simplify info_hash checking 2014-12-11 17:07:37 +01:00
Astro
217bcf7de5 server _onUdpRequest(): don't check empty params, errors will be thrown now 2014-12-11 16:39:10 +01:00
Astro
7a8f9a779f server _onHttpRequest(): don't wrap errors in errors 2014-12-11 16:24:33 +01:00
Astro
74d9139049 server _onHttpRequest(): ensure non-empty params 2014-12-11 16:22:17 +01:00
Astro
e64fecc063 parseUdpRequest(): throw on invalid packet 2014-12-11 16:19:08 +01:00
Astro
7a417a591d parseUdpRequest(): fix params.ip 2014-12-11 16:11:12 +01:00
Astro
e234f14d56 server swarm: split out announce events 2014-12-10 17:01:34 +01:00
Astro
8439300df9 server: unify compact serialization 2014-12-10 16:51:35 +01:00
Astro
b72960dee3 server: split out Swarm 2014-12-10 16:47:41 +01:00
Astro
1c754a2f49 move parseHttpRequest(), parseUdpRequest() to lib/parse_{http,udp}.js 2014-12-10 00:44:45 +01:00
Astro
aea3c44c08 server: expose getSwarm()
drops capability to pass a *hex* infoHash
2014-12-09 23:18:47 +01:00
Astro
fee289b074 server: rm superfluous action fields 2014-12-09 23:18:35 +01:00
Astro
366b49bf06 server: split out _onRequest() et al 2014-12-09 02:35:05 +01:00
Astro
85be917d51 server: replace request string by action number 2014-12-09 00:29:02 +01:00