Commit Graph

15 Commits

Author SHA1 Message Date
Jimmy Zelinskie
ac2fcade1e tracker: record announce/scrape stats in handlers
This deduplicates code tracking the stats code tracking announces and
scrapes for each protocol. The down side is that it isn't aware of any
failures writing responses, but it was already being called before the
write to a response for HTTP.
2015-02-26 09:03:52 -05:00
Justin Li
87c68f1973 2015 2015-01-01 12:02:25 -05:00
Jimmy Zelinskie
d46beb0f7d Remove unkeyed composite literals.
This was done to keep in accordance with `go vet`.
2014-10-28 12:26:37 -04: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
ffb3c57181 move whitelist into cfg 2014-07-25 16:58:26 -04:00
Justin Li
b08195aeef Rename RequestsBlocked to ClientErrors and remove special cases from tracker code 2014-07-24 18:01:26 -04:00
Justin Li
6396990e52 Move errors to tracker/models 2014-07-23 00:37:30 -04:00
Jimmy Zelinskie
2c8894fbda rollout more stats 2014-07-21 20:24:51 -04:00
Jimmy Zelinskie
24f3e6b80b announce & scrape stats 2014-07-21 19:32:36 -04:00
Justin Li
7a849e6f20 Defer closing connections to prevent leaking them 2014-07-21 10:57:00 -04:00
Jimmy Zelinskie
6b260b7352 close tracker pool connections & some style changes 2014-07-21 03:58:07 -04:00
Jimmy Zelinskie
5bd3b3efb3 update docs all around 2014-07-18 19:09:06 -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