Justin Li
|
6b089342d1
|
Simplify subnet preference code considerably
|
2014-07-17 14:15:05 -04:00 |
|
Justin Li
|
794657274a
|
Add tests for subnet preference
|
2014-07-17 14:14:29 -04:00 |
|
Justin Li
|
9b30a4cb16
|
Use literal dicts where possible for performance
|
2014-07-17 13:43:35 -04:00 |
|
Justin Li
|
19f03499a2
|
Fix wording in a couple comments
|
2014-07-17 13:43:35 -04:00 |
|
Jimmy Zelinskie
|
809735c504
|
rm extra if; add missing expr for ipv6 subnet
|
2014-07-17 08:27:08 -04:00 |
|
Jimmy Zelinskie
|
f54f688ab2
|
correct comment [ci-skip]
|
2014-07-17 04:21:12 -04:00 |
|
Jimmy Zelinskie
|
07081e1027
|
Add support for preferring peers in the same subnet
|
2014-07-17 04:17:43 -04:00 |
|
Justin Li
|
d219341c26
|
Add new option to the example config, and update README
|
2014-07-17 01:49:41 -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
|
67a8473f6e
|
Clean up types more
|
2014-07-17 01:14:50 -04:00 |
|
Justin Li
|
9dde295b7c
|
Move AnnounceResponse and ScrapeResponse to models
|
2014-07-17 01:10:50 -04:00 |
|
Justin Li
|
3ad3f11b2c
|
Put the query package into http, since it is for http only
|
2014-07-17 01:00:26 -04:00 |
|
Justin Li
|
343b3358a1
|
Move NewAnnounce and NewScrape to http, since they are an implementation detail
|
2014-07-17 00:54:53 -04:00 |
|
Justin Li
|
ed126dda29
|
Update tests and fix a couple failures
|
2014-07-17 00:41:59 -04:00 |
|
Justin Li
|
da19ed3e21
|
Separate tracker logic from the http package, step 1
|
2014-07-17 00:09:56 -04:00 |
|
Justin Li
|
f8047ef8ab
|
Reorganize main package structure per discussion
|
2014-07-16 20:33:38 -04:00 |
|
Justin Li
|
e219176e8b
|
More thorough peer purging test, and tidy some style things
|
2014-07-16 20:17:10 -04:00 |
|
Justin Li
|
242892eb79
|
Use <= over < for time comparison to allow for sub-second tests
|
2014-07-16 20:08:23 -04:00 |
|
Justin Li
|
a2e14f79c2
|
Add peer purging test, and ensure the purging routine runs whenever a tracker is created
|
2014-07-16 20:08:03 -04:00 |
|
Justin Li
|
0f2ed791e5
|
Handle case where a torrent is deleted before being processed
|
2014-07-16 20:06:45 -04:00 |
|
Justin Li
|
019bb449b5
|
Add instructions for how to import custom drivers
|
2014-07-16 19:46:50 -04:00 |
|
Justin Li
|
cd6204f13d
|
Purge peers that have not announced for twice the announce interval
|
2014-07-16 19:38:51 -04:00 |
|
Justin Li
|
7fe6dc3b4e
|
Simpler, more efficient way of deleting inactive torrents
|
2014-07-16 15:03:33 -04:00 |
|
Justin Li
|
e29fb21edb
|
Only prune torrents if they have no peers
|
2014-07-16 14:11:01 -04:00 |
|
Justin Li
|
5f4f63cc44
|
Fix go vet suggestions
|
2014-07-16 14:00:45 -04:00 |
|
Justin Li
|
1236a5ee5b
|
Allow purge interval to be set, and fix variable naming
|
2014-07-16 13:54:10 -04:00 |
|
Justin Li
|
84e1c169c0
|
Add tests for torrent purging
|
2014-07-16 13:53:42 -04:00 |
|
Justin Li
|
ea72e9e10c
|
Initial torrent inactivity purging
|
2014-07-16 13:24:44 -04:00 |
|
Justin Li
|
7636608725
|
Remove Active from the Torrent model and keep LastAction updated
|
2014-07-16 13:05:13 -04:00 |
|
Justin Li
|
2a4d4c5aef
|
Simpler interface
|
2014-07-16 13:03:59 -04:00 |
|
Justin Li
|
3ceaf72034
|
Separate Conn and PrivateConn tracker interfaces
|
2014-07-16 12:33:16 -04:00 |
|
Justin Li
|
8ef67ff99f
|
Remove unnecessary imports in tests
|
2014-07-16 12:25:40 -04:00 |
|
Justin Li
|
f3f58c024c
|
Use glog levelled logging to decrease announce overhead
|
2014-07-16 11:52:59 -04:00 |
|
Justin Li
|
df5ad919f9
|
Use a constant for the JSON Content-Type
|
2014-07-16 11:52:25 -04:00 |
|
Justin Li
|
d39a40c4fe
|
Clearer field names for the Tracker struct
|
2014-07-16 11:29:40 -04:00 |
|
Justin Li
|
2972aae231
|
More idiomatic flag descriptions
|
2014-07-16 09:43:28 -04:00 |
|
Jimmy Zelinskie
|
ab3d49da9d
|
pedantic breakline!
|
2014-07-16 06:01:09 -04:00 |
|
Jimmy Zelinskie
|
251b5c5f18
|
API sets json content-type
|
2014-07-16 06:00:20 -04:00 |
|
Jimmy Zelinskie
|
c762946ed7
|
unescape infohash in API
|
2014-07-16 05:46:33 -04:00 |
|
Jimmy Zelinskie
|
23edba6dc6
|
check route added
|
2014-07-16 05:44:26 -04:00 |
|
Jimmy Zelinskie
|
65bd11f636
|
s/setupRoutes/NewRouter
|
2014-07-16 04:40:51 -04:00 |
|
Jimmy Zelinskie
|
a614f42a94
|
docs for http package
|
2014-07-16 04:40:17 -04:00 |
|
Jimmy Zelinskie
|
bc9d3d209d
|
maxprocs exposed by flag
|
2014-07-16 00:01:10 -04:00 |
|
Justin Li
|
6623098853
|
Separate main() to allow for external inclusion
|
2014-07-15 23:06:07 -04:00 |
|
Justin Li
|
fbcf762a42
|
Rename again
|
2014-07-15 22:58:38 -04:00 |
|
Justin Li
|
660fbef778
|
Rename private_announce_test to a shorter name
|
2014-07-15 22:54:59 -04:00 |
|
Justin Li
|
c745c791a5
|
More panicky type assertions
|
2014-07-15 22:48:04 -04:00 |
|
Justin Li
|
5ccb42a0c7
|
Make private announce test more complete and fix brittle peer order
|
2014-07-15 22:44:20 -04:00 |
|
Justin Li
|
9adf9a114c
|
More test cleanup
|
2014-07-15 22:19:44 -04:00 |
|