Commit Graph

32 Commits

Author SHA1 Message Date
Leo Balduf
9c1168746a hotfix: initialized scrape map 2016-04-02 20:23:42 -04:00
Leo Balduf
c6a3830c4b tracker: made (Scrape|Announce)Chain exported 2016-04-02 18:45:23 -04:00
Leo Balduf
230e0573c0 tracker: added a way for middleware constructors to fail 2016-03-24 15:29:57 +01:00
Leo Balduf
2974519e5c middleware: made middleware configurable 2016-03-16 18:20:59 +01:00
Jimmy Zelinskie
0dfc26caea remove config package 2016-03-02 21:05:33 -05:00
Jimmy Zelinskie
82b4395b11 errors: remove errors package 2016-03-02 21:05:32 -05:00
Justin Li
75b4a20e56 Bring in more old behaviour, use types for peer_id and infohash 2016-03-02 21:05:31 -05:00
Jimmy Zelinskie
bd33c0c66b initial middleware refactor 2016-03-02 21:05:30 -05:00
Jimmy Zelinskie
5c27c960f0 clean the slate! 2016-03-02 21:05:30 -05:00
Jimmy Zelinskie
29c206611e replace time.NewTicker().C with time.After
They are synonymous and time.After is much easier to read.
2016-01-13 16:14:54 -05:00
Jimmy Zelinskie
82459297a4 add support for jwt validation of infohashes 2016-01-13 16:14:54 -05:00
Jimmy Zelinskie
9862a57b73 remove all private tracker logic
There are no consumers of any of this logic nor is it complete. We're
better off without it in the meantime until we have a use case and a
more cohesive model for expressing it.
2016-01-04 18:26:29 -05:00
Jimmy Zelinskie
b6929a7632 remove unused Server type 2015-10-25 16:31:46 -04:00
Jimmy Zelinskie
c0c3eda290 config: make reaping configurable
This allows for configurable reaping rates and changes the default to
what many public trackers use in the wild.
2015-09-18 01:27:27 -04:00
Justin Li
669128c83a tracker: Pass listen address into tracker.Server.Serve() 2015-02-21 13:16:21 -05:00
Justin Li
92f3c62456 tracker: Add common interface to start and stop servers 2015-02-20 13:39:19 -05:00
Justin Li
d9a7611eee http: Unexport announce/scrape creation functions 2015-02-20 01:36:49 -05:00
Justin Li
87c68f1973 2015 2015-01-01 12:02:25 -05:00
Jimmy Zelinskie
ddd10d9732 Begin refactor to better encapsulate configuration
This also updates the example_config.json which did not previously work.
Config.Config is now composed of embedded structs of other configs that
can later be used to clearly have a separation of concerns.
2014-11-01 20:12:40 -04:00
Paul Saab
ad9034da6d Reduce contention on the torrent map
We see the torrent map have quite a bit of contention.  Shard the map by
a configurable number of shards to reduce the times we may contend on
the lock.
2014-09-24 10:23:16 -07:00
Jimmy Zelinskie
b910fdabf5 Organize peers by subnet.
This commit restructures PeerMaps to be a map from Subnet to
PeerID to Peer. This reduces the complexity require to gather peers from
the same subnet.
2014-09-23 23:00:50 -04:00
Jimmy Zelinskie
1d9b2bc322 First step towards removing Tracker Driver.
This feature isn't worth maintaining and if anyone needs to scale beyond
memory on a single box, we can evaluate it then.
2014-08-13 17:45:34 -04:00
Jimmy Zelinskie
c438b877ba add error checking to loading whitelist 2014-07-26 06:15:40 -04:00
Jimmy Zelinskie
ffb3c57181 move whitelist into cfg 2014-07-25 16:58:26 -04:00
Jimmy Zelinskie
64d08ca16b add whitelist flag 2014-07-25 01:48:30 -04:00
Jimmy Zelinskie
6b260b7352 close tracker pool connections & some style changes 2014-07-21 03:58:07 -04:00
Jimmy Zelinskie
e78dc74990 added Close to tracker 2014-07-21 03:54:22 -04:00
Justin Li
19f03499a2 Fix wording in a couple comments 2014-07-17 13:43:35 -04:00
Justin Li
414e14f826 Remove a small file, and add comments 2014-07-17 01:45:14 -04:00
Justin Li
199496bfa6 Move backend to root level, combine announce tests, rename files 2014-07-17 01:26:34 -04:00
Justin Li
9dde295b7c Move AnnounceResponse and ScrapeResponse to models 2014-07-17 01:10:50 -04:00
Justin Li
da19ed3e21 Separate tracker logic from the http package, step 1 2014-07-17 00:09:56 -04:00