Commit Graph

567 Commits

Author SHA1 Message Date
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
Feross Aboukhadijeh
3e1299b217 4.1.0 2015-05-03 20:30:42 -07:00
Feross Aboukhadijeh
3eb0228c91 allow specifying hostnames for udp/http individually 2015-05-03 20:29:58 -07:00
Feross Aboukhadijeh
e7f0478e6e 4.0.0 2015-05-03 17:21:43 -07:00
Feross Aboukhadijeh
938c025ed9 remove wrtc dependency
For #303
2015-05-03 17:21:08 -07:00
Feross Aboukhadijeh
9a6e854609 Limit number of WebRTC offers to only 5 2015-05-03 16:53:37 -07:00
Feross Aboukhadijeh
1de0983864 3.6.3 2015-05-03 16:49:22 -07:00
Feross Aboukhadijeh
770b2e7480 3.6.2 2015-05-03 16:47:31 -07:00
Feross Aboukhadijeh
68f2317870 Revert "prevent "value out of bounds error""
This reverts commit 25b25f663c.
2015-05-03 16:46:39 -07:00
Feross Aboukhadijeh
1338282cc9 prevent negative complete/incomplete numbers
Fixes #65
Fixes #72
2015-05-03 16:38:16 -07:00
Feross Aboukhadijeh
71c5cf5fb6 3.6.1 2015-05-03 14:20:52 -07:00
Feross Aboukhadijeh
4c3c950056 One more fix for IPv6 UDP support
For #73
2015-05-03 14:20:17 -07:00
Feross Aboukhadijeh
d56dd26950 standard 2015-05-03 14:00:51 -07:00
Feross Aboukhadijeh
1212e33e3a 3.6.0 2015-05-02 12:15:53 -07:00
Feross Aboukhadijeh
4da0f3b8ac Listen over IPv6 for UDP
Fixes #73
2015-05-02 12:15:14 -07:00
Feross Aboukhadijeh
eada21b6a0 3.5.1 2015-05-01 21:33:35 -07:00