Commit Graph

  • e219176e8b More thorough peer purging test, and tidy some style things Justin Li 2014-07-16 20:17:10 -04:00
  • 242892eb79 Use <= over < for time comparison to allow for sub-second tests Justin Li 2014-07-16 20:08:23 -04:00
  • a2e14f79c2 Add peer purging test, and ensure the purging routine runs whenever a tracker is created Justin Li 2014-07-16 20:08:03 -04:00
  • 0f2ed791e5 Handle case where a torrent is deleted before being processed Justin Li 2014-07-16 20:06:45 -04:00
  • 019bb449b5 Add instructions for how to import custom drivers Justin Li 2014-07-16 19:46:50 -04:00
  • cd6204f13d Purge peers that have not announced for twice the announce interval Justin Li 2014-07-16 19:38:51 -04:00
  • 7fe6dc3b4e Simpler, more efficient way of deleting inactive torrents Justin Li 2014-07-16 15:03:33 -04:00
  • e29fb21edb Only prune torrents if they have no peers Justin Li 2014-07-16 14:11:01 -04:00
  • 5f4f63cc44 Fix go vet suggestions Justin Li 2014-07-16 14:00:45 -04:00
  • 1236a5ee5b Allow purge interval to be set, and fix variable naming Justin Li 2014-07-16 13:54:10 -04:00
  • 84e1c169c0 Add tests for torrent purging Justin Li 2014-07-16 13:53:42 -04:00
  • ea72e9e10c Initial torrent inactivity purging Justin Li 2014-07-16 13:24:44 -04:00
  • 7636608725 Remove Active from the Torrent model and keep LastAction updated Justin Li 2014-07-16 13:05:13 -04:00
  • 2a4d4c5aef Simpler interface Justin Li 2014-07-16 13:03:59 -04:00
  • 3ceaf72034 Separate Conn and PrivateConn tracker interfaces Justin Li 2014-07-16 12:33:16 -04:00
  • 8ef67ff99f Remove unnecessary imports in tests Justin Li 2014-07-16 12:25:40 -04:00
  • f3f58c024c Use glog levelled logging to decrease announce overhead Justin Li 2014-07-16 11:52:59 -04:00
  • df5ad919f9 Use a constant for the JSON Content-Type Justin Li 2014-07-16 11:52:25 -04:00
  • d39a40c4fe Clearer field names for the Tracker struct Justin Li 2014-07-16 11:29:40 -04:00
  • 2972aae231 More idiomatic flag descriptions Justin Li 2014-07-16 02:24:00 -04:00
  • ab3d49da9d pedantic breakline! Jimmy Zelinskie 2014-07-16 06:01:09 -04:00
  • 251b5c5f18 API sets json content-type Jimmy Zelinskie 2014-07-16 06:00:20 -04:00
  • c762946ed7 unescape infohash in API Jimmy Zelinskie 2014-07-16 05:46:33 -04:00
  • 23edba6dc6 check route added Jimmy Zelinskie 2014-07-16 05:44:26 -04:00
  • 65bd11f636 s/setupRoutes/NewRouter Jimmy Zelinskie 2014-07-16 04:40:51 -04:00
  • a614f42a94 docs for http package Jimmy Zelinskie 2014-07-16 04:40:17 -04:00
  • bc9d3d209d maxprocs exposed by flag Jimmy Zelinskie 2014-07-16 00:01:10 -04:00
  • 6623098853 Separate main() to allow for external inclusion Justin Li 2014-07-15 23:06:07 -04:00
  • fbcf762a42 Rename again Justin Li 2014-07-15 22:58:38 -04:00
  • 660fbef778 Rename private_announce_test to a shorter name Justin Li 2014-07-15 22:54:59 -04:00
  • c745c791a5 More panicky type assertions Justin Li 2014-07-15 22:48:04 -04:00
  • 5ccb42a0c7 Make private announce test more complete and fix brittle peer order Justin Li 2014-07-15 22:44:20 -04:00
  • 9adf9a114c More test cleanup Justin Li 2014-07-15 22:19:44 -04:00
  • 71cd410116 Less duplication Justin Li 2014-07-15 21:35:33 -04:00
  • 198582553a Use dummy-er data Justin Li 2014-07-15 21:21:42 -04:00
  • f20fea7db0 Remove unnecessary test indirection Justin Li 2014-07-15 21:14:20 -04:00
  • 586b6852de Refactor more, add scrape tests Justin Li 2014-07-15 21:07:33 -04:00
  • bec70e9759 Refactor peer dict creation in the announce test Justin Li 2014-07-15 20:50:33 -04:00
  • c36974d515 Use bencode.List over []interface{} Justin Li 2014-07-15 20:45:18 -04:00
  • 019c87182e Add public announce tests and refactor Justin Li 2014-07-15 20:38:17 -04:00
  • 850cedf7ec Use the bencode package to avoid hardcoded test strings Justin Li 2014-07-15 19:35:18 -04:00
  • d2ba9fb9f7 repurpose drivers from mock to no-op and memory Jimmy Zelinskie 2014-07-15 00:22:04 -04:00
  • b321d1f0fa update config docs [ci-skip] Jimmy Zelinskie 2014-07-14 23:13:35 -04:00
  • 6a5144fb4e Adds an error for missing driver params Jimmy Zelinskie 2014-07-14 20:36:49 -04:00
  • fc0b1b008d Flush log IO before exiting Jimmy Zelinskie 2014-07-13 21:27:20 -04:00
  • 8ddbf32002 rm last printf in http Jimmy Zelinskie 2014-07-12 01:52:27 -04:00
  • 292c15e519 responses are bencode.Dict; Closes #29. Jimmy Zelinskie 2014-07-11 22:15:51 -04:00
  • dfc215115a fix reversed cases Jimmy Zelinskie 2014-07-11 20:44:28 -04:00
  • 0f734a6069 when public, create non-existing torrents Jimmy Zelinskie 2014-07-11 20:39:55 -04:00
  • 3cc4679454 default to addr 127.0.0.1:6881 Jimmy Zelinskie 2014-07-09 21:26:44 -04:00
  • fb528b1fc3 NewAnnounce more verbose error handling Jimmy Zelinskie 2014-07-09 18:29:05 -04:00
  • e2af935b83 disambiguate routing Jimmy Zelinskie 2014-07-09 01:34:34 -04:00
  • afb2376286 api routes; status codes fixed Jimmy Zelinskie 2014-07-09 00:53:57 -04:00
  • 6ee6c0bef4 API: putUser & putTorrent impl Jimmy Zelinskie 2014-07-08 16:55:24 -04:00
  • f656133a6f Tracker.Conn API made more RESTful Jimmy Zelinskie 2014-07-08 05:58:00 -04:00
  • 99ac8f77c8 Tracker.Conn interface update to better fit API Jimmy Zelinskie 2014-07-07 22:44:27 -04:00
  • 9e94643379 implemented some API funcs, added whitelist API Jimmy Zelinskie 2014-07-07 22:23:01 -04:00
  • d8bcbd1dde flesh out api Jimmy Zelinskie 2014-07-07 21:59:41 -04:00
  • 7351d3e79a Add missing quotation mark in struct tag Justin Li 2014-07-07 00:09:20 -04:00
  • 867688449c Reflect change in sorting in the descriptions Justin Li 2014-07-06 23:58:34 -04:00
  • 672c9d160f :sort authors/contributors Jimmy Zelinskie 2014-07-06 23:37:06 -04:00
  • 0ed8f50348 fix syntactic inconsistencies Jimmy Zelinskie 2014-07-06 23:35:37 -04:00
  • fb1df95366 Use new Travis badge URL Justin Li 2014-07-06 18:08:55 -04:00
  • 86fead3056 Extract the bencode package to github.com/chihaya/bencode Justin Li 2014-07-06 18:04:05 -04:00
  • e08f745f6c Happy uber-belated new year! Justin Li 2014-07-06 17:56:54 -04:00
  • 09515864db Add a missing trailing 'e' to the encoding of maps Justin Li 2014-07-06 17:49:28 -04:00
  • e1575d1fa3 Add bencode tests for arrays and maps Justin Li 2014-07-06 17:47:32 -04:00
  • dd5e8e460f Add scalar bencode tests Justin Li 2014-07-06 17:26:07 -04:00
  • e86ff58b44 Add note about Go 1.3+ and link to the doc about code organization Justin Li 2014-07-06 17:09:37 -04:00
  • ff5dc0920d DriverConfig.Params enables generic db parameters Jimmy Zelinskie 2014-07-03 17:37:13 -04:00
  • b1311b3118 log flags/gomaxprocs Jimmy Zelinskie 2014-07-02 00:45:17 -04:00
  • d954378791 specify between torrent and http errors Jimmy Zelinskie 2014-07-02 00:33:19 -04:00
  • 6d5290d85e transition to httprouter Jimmy Zelinskie 2014-07-01 21:40:29 -04:00
  • 9cb5b82dc7 log->glog; more bencode fixes Jimmy Zelinskie 2014-06-30 23:21:08 -04:00
  • 834e584f2d fix null ptrs, misuse of bencode Jimmy Zelinskie 2014-06-30 14:59:31 -04:00
  • ac45708bfd fix passing of peer slices by reference Jimmy Zelinskie 2014-06-29 01:23:55 -04:00
  • 3999e35453 Refactor writing peers & IPv6 Compact support. Closes #14. Jimmy Zelinskie 2014-06-28 20:44:43 -04:00
  • e0ead67737 defer pprof.StopCPUProfile() Jimmy Zelinskie 2014-06-26 17:19:18 -04:00
  • caba155b5d consistent logging Jimmy Zelinskie 2014-06-26 17:10:39 -04:00
  • 8775764fb6 deltas are now private only Jimmy Zelinskie 2014-06-26 14:26:58 -04:00
  • 9e37c6af02 NewPeer now handles nil Jimmy Zelinskie 2014-06-25 21:34:21 -04:00
  • 42693e2a3b docs, signatures; glog for main; config.New() Jimmy Zelinskie 2014-06-24 03:59:30 -04:00
  • 3c01900c69 fix copyright [skip ci] Jimmy Zelinskie 2014-06-23 22:55:27 -04:00
  • 3bfb3074b4 overhaul everything Jimmy Zelinskie 2014-06-23 22:47:43 -04:00
  • 18f6c32d97 update travis to go1.3 & rm redis dependency Jimmy Zelinskie 2014-06-19 12:35:24 -04:00
  • 49dac73d82 add mock drivers to binary Jimmy Zelinskie 2014-06-19 12:34:47 -04:00
  • cb99fce6c0 server.Prime and server.serveAnnounce test Jimmy Zelinskie 2014-05-08 08:08:00 -04:00
  • 58586e6718 fix accidental reorder Jimmy Zelinskie 2014-05-08 06:49:16 -04:00
  • cf95b2d94b improve comments and logging Jimmy Zelinskie 2014-05-08 06:48:32 -04:00
  • 90491dc386 mockConfig.Addr :80 -> :34000 Jimmy Zelinskie 2014-05-08 06:39:39 -04:00
  • 0fd90b86d3 announce.go; fmt nitpicks Jimmy Zelinskie 2014-05-08 01:09:02 -04:00
  • 10c980adff mock.RecordAnnounce() & mock.DeltaHistory() Jimmy Zelinskie 2014-05-07 08:42:41 -04:00
  • 7a05ab6d64 *_handler.go -> serve_*.go Jimmy Zelinskie 2014-05-07 05:27:09 -04:00
  • 4a8d756f5a announce type; renames; docs Jimmy Zelinskie 2014-05-07 05:19:36 -04:00
  • b32eaebcd6 first pass with linter Jimmy Zelinskie 2014-05-01 00:30:46 -04:00
  • f0bed27b6d Server.BackendCon renamed Server.BackendConn Jimmy Zelinskie 2014-04-20 02:25:21 -04:00
  • e80b17b2ad initial delta support Jimmy Zelinskie 2014-02-22 23:47:11 -05:00
  • e8e692cbf6 Clean up tests a little Justin Li 2013-12-13 11:48:47 -05:00
  • 140a738162 Fix edge cases for peer ID parsing Justin Li 2013-12-13 11:19:22 -05:00
  • 0ceefca9c1 Merge pull request #26 from b0unce/example-config Justin Li 2013-12-10 10:40:33 -08:00