Commit Graph

882 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
69c27bf415 4.4.5 2015-06-09 22:32:45 -07:00
Feross Aboukhadijeh
4816796fda throw when listen is called twice in a row 2015-06-09 22:32:04 -07:00
Feross Aboukhadijeh
5be05f2794 Don't return if not listening (in onXXXXRequest)
Fixes #79
2015-06-09 22:25:25 -07:00
Feross Aboukhadijeh
711da3d28e 4.4.4 2015-06-06 13:11:25 -07:00
Feross Aboukhadijeh
96f6fce1ab only return correct peer type from swarm 2015-06-06 13:10:49 -07:00
Feross Aboukhadijeh
ad0cd4edab 4.4.3 2015-05-30 14:28:01 -07:00
Feross Aboukhadijeh
da5036424b fix exception in websocket tracker 2015-05-30 14:20:42 -07:00
Feross Aboukhadijeh
fdb94e98d7 4.4.2 2015-05-29 21:06:34 -07:00
Feross Aboukhadijeh
ae9a99a6dc add node 0.10 support back after PR 2015-05-29 21:05:00 -07:00
Feross Aboukhadijeh
d23565155d Merge branch 'gmbuell-master' 2015-05-29 20:56:59 -07:00
Feross Aboukhadijeh
c862af6af0 Merge branch 'master' of https://github.com/gmbuell/bittorrent-tracker into gmbuell-master 2015-05-29 20:56:50 -07:00
Feross Aboukhadijeh
50c676727c 4.4.1 2015-05-29 14:24:58 -07:00
Feross Aboukhadijeh
8e29227003 emit 'warning' for unsupported tracker protocol 2015-05-29 14:24:28 -07:00
Garret Buell
e5531a315f reuseAddr for dgram.CreateSocket
Creating a udp4 and udp6 socket on the same port can result in "ERROR: bind EADDRINUSE". Passing reuseAddr: true fixes this.
2015-05-29 10:43:35 -07:00
Feross Aboukhadijeh
68f0d7e46d 4.4.0 2015-05-27 17:50:44 -07:00
Feross Aboukhadijeh
0f4c0ab74d parse-torrent@5 2015-05-27 17:50:12 -07:00
Feross Aboukhadijeh
59052cba0c magnet-uri@5 2015-05-27 17:50:05 -07:00
Feross Aboukhadijeh
ac2c3d06d8 client: Re-use WebSocket connections
Use a socket pool, so tracker clients share WebSocket objects for the
same server.

In practice, WebSockets are pretty slow to establish, so this gives a
nice performance boost, and saves browser resources.
2015-05-27 13:09:15 +02:00
Feross Aboukhadijeh
340b3faff2 server: always send binary ids 2015-05-27 12:59:12 +02:00
Feross Aboukhadijeh
749cee1465 server command line: log peer_id for web peers 2015-05-27 12:58:50 +02:00
Feross Aboukhadijeh
31db779337 4.3.7 2015-05-24 16:44:13 +02:00
Feross Aboukhadijeh
e4d413d83b fix regression: convert buffer to string 2015-05-24 16:43:30 +02:00
Feross Aboukhadijeh
9f0f286489 4.3.6 2015-05-22 16:30:48 +02:00
Feross Aboukhadijeh
6f333a3c84 clarify tracker addresses in command line output
For #76
2015-05-22 16:30:06 +02:00
Feross Aboukhadijeh
0a1b89cbaf 4.3.5 2015-05-22 16:22:37 +02:00
Feross Aboukhadijeh
3be06d6684 always produce valid urls with trailing /
Fixes this error:

ERROR: connection error to wss://tracker.webtorrent.io?1fe16837ed
ERROR: If you think this is a bug in webtorrent, report it!
2015-05-22 16:21:55 +02:00
Feross Aboukhadijeh
19ba81a989 4.3.4 2015-05-20 06:46:35 -07:00
Feross Aboukhadijeh
c1bbade6d7 cache infohash and peerid 2015-05-20 06:45:59 -07:00
Feross Aboukhadijeh
bb145cce14 ws client: ignore offers/answers from self 2015-05-20 06:40:25 -07:00
Feross Aboukhadijeh
a80f2559e7 4.3.3 2015-05-19 04:33:03 -07:00
Feross Aboukhadijeh
d40eeccf4d limit webrtc offers to 10 2015-05-19 04:32:17 -07:00
Feross Aboukhadijeh
02c92fd2ba randomize the peers that are given out 2015-05-19 04:32:09 -07:00
Feross Aboukhadijeh
9d8c5d6af2 4.3.2 2015-05-17 13:54:14 -07:00
Feross Aboukhadijeh
2505e13009 after socket destroy, ignore all future errors 2015-05-17 13:53:36 -07:00
Feross Aboukhadijeh
d0f384931f 4.3.1 2015-05-17 01:54:28 -07:00
Feross Aboukhadijeh
d78b678f5b fix regression: double cleanup bug 2015-05-17 01:47:12 -07:00
Feross Aboukhadijeh
89a4e07430 4.3.0 2015-05-17 00:08:00 -07:00
Feross Aboukhadijeh
0482c01a47 ws client: better offline reconnect behavior
Fixes https://github.com/feross/webtorrent/issues/318
2015-05-17 00:07:21 -07:00
Feross Aboukhadijeh
f842a34f54 4.2.0 2015-05-16 23:26:13 -07:00
Feross Aboukhadijeh
8788d75737 udp/ws clients: add destroy functions
Fixes #75
2015-05-16 23:25:34 -07:00
Feross Aboukhadijeh
f285c9dd3c client.stop() no longer calls client.destroy()
You must call client.destroy() manually to clean up resources
2015-05-16 23:24:20 -07:00
Feross Aboukhadijeh
ee91dff19d client: add http tracker destroy function 2015-05-16 22:55:41 -07:00
Feross Aboukhadijeh
c048f1b2a9 cleanup self._trackers 2015-05-16 22:55:01 -07:00
Feross Aboukhadijeh
153402ae85 don't modify passed in torrent object 2015-05-16 22:54:45 -07:00
Feross Aboukhadijeh
e5560d8f00 4.1.3 2015-05-05 23:31:37 -07:00
Feross Aboukhadijeh
2b48883742 ws tracker: JSON.stringify messages 2015-05-05 23:05:10 -07:00
Feross Aboukhadijeh
cd861ff288 4.1.2 2015-05-03 21:01:12 -07:00
Feross Aboukhadijeh
a420af8a62 separate hostname.upd6 option for IPv6 2015-05-03 21:00:38 -07:00
Feross Aboukhadijeh
fa23f9bde3 4.1.1 2015-05-03 20:38:50 -07:00
Feross Aboukhadijeh
9c2b71fef1 fix listen debug log 2015-05-03 20:38:18 -07:00