Justin Li
|
8369bbbcd8
|
Allow configuring if a peer may have 2 IPs
|
2014-07-23 13:36:31 -04:00 |
|
Justin Li
|
b227fc1fcd
|
Support dual-stacked peers
|
2014-07-23 13:15:04 -04:00 |
|
Justin Li
|
14843b9e89
|
Add AllowIPSpoofing configuration
|
2014-07-23 13:08:57 -04:00 |
|
Justin Li
|
4295ad739c
|
Reorder peer stats to provide a more readable output
|
2014-07-23 02:25:35 -04:00 |
|
Justin Li
|
bacf4f0fd4
|
Add really really verbose log level
|
2014-07-23 02:25:15 -04:00 |
|
Justin Li
|
f2cc5188dd
|
Amend announce test to include an instance of the started event
|
2014-07-23 01:39:20 -04:00 |
|
Justin Li
|
2a400a0419
|
Handle ErrBadRequest after HandleAnnounce is called
|
2014-07-23 01:34:40 -04:00 |
|
Justin Li
|
856568f1a8
|
Always log errors
|
2014-07-23 01:31:22 -04:00 |
|
Justin Li
|
84195deb58
|
Correctly handle ErrBadRequest in the announce handler
|
2014-07-23 01:26:47 -04:00 |
|
Jimmy Zelinskie
|
f8d12054c5
|
log request failures
|
2014-07-23 01:20:48 -04:00 |
|
Justin Li
|
e7481b31c1
|
Don't write ipv6 peers field if empty
|
2014-07-23 00:56:11 -04:00 |
|
Justin Li
|
b99e5e0c36
|
Add compact announce tests
|
2014-07-23 00:55:57 -04:00 |
|
Justin Li
|
6396990e52
|
Move errors to tracker/models
|
2014-07-23 00:37:30 -04:00 |
|
Justin Li
|
6c7abdfa2d
|
Don't return an HTTP error for "bad request" tracker errors
|
2014-07-23 00:33:00 -04:00 |
|
Justin Li
|
8625c4b3c4
|
Update the easter egg
|
2014-07-23 00:12:29 -04:00 |
|
Justin Li
|
7fce8c9ad4
|
Add response time stats
|
2014-07-22 14:57:36 -04:00 |
|
Justin Li
|
8d8c1fba62
|
Don't write nil compact peer lists
|
2014-07-22 01:59:05 -04:00 |
|
Justin Li
|
9b60b3144e
|
Fix copy and paste error
|
2014-07-22 01:56:48 -04:00 |
|
Justin Li
|
38d2c91ff1
|
Implement RequestsHandled and RequestsErrored stats
|
2014-07-22 01:40:52 -04:00 |
|
Justin Li
|
6fdb68d9b2
|
Implement OpenConnections and ConnectionsAccepted stats
|
2014-07-22 01:38:07 -04:00 |
|
Jimmy Zelinskie
|
4514705363
|
re-add /check as per discussion
|
2014-07-22 01:19:09 -04:00 |
|
Jimmy Zelinskie
|
fa191de6d3
|
serve stats via /check
|
2014-07-22 01:12:41 -04:00 |
|
Jimmy Zelinskie
|
2c8894fbda
|
rollout more stats
|
2014-07-21 20:24:51 -04:00 |
|
Justin Li
|
af57763882
|
Commit some staged changes
|
2014-07-21 10:53:26 -04:00 |
|
Jimmy Zelinskie
|
e78dc74990
|
added Close to tracker
|
2014-07-21 03:54:22 -04:00 |
|
Jimmy Zelinskie
|
5bd3b3efb3
|
update docs all around
|
2014-07-18 19:09:06 -04:00 |
|
Justin Li
|
cd0a3436b7
|
Add IPv6 peers to the subnet tests
|
2014-07-17 14:38:01 -04:00 |
|
Justin Li
|
664b365061
|
Refactor announce test helpers
|
2014-07-17 14:28:55 -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
|
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
|
e219176e8b
|
More thorough peer purging test, and tidy some style things
|
2014-07-16 20:17:10 -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
|
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
|
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 |
|
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 |
|
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 |
|
Justin Li
|
71cd410116
|
Less duplication
|
2014-07-15 21:35:33 -04:00 |
|
Justin Li
|
198582553a
|
Use dummy-er data
|
2014-07-15 21:21:42 -04:00 |
|
Justin Li
|
f20fea7db0
|
Remove unnecessary test indirection
|
2014-07-15 21:14:20 -04:00 |
|
Justin Li
|
586b6852de
|
Refactor more, add scrape tests
|
2014-07-15 21:07:33 -04:00 |
|
Justin Li
|
bec70e9759
|
Refactor peer dict creation in the announce test
|
2014-07-15 20:50:33 -04:00 |
|
Justin Li
|
c36974d515
|
Use bencode.List over []interface{}
|
2014-07-15 20:45:18 -04:00 |
|
Justin Li
|
019c87182e
|
Add public announce tests and refactor
|
2014-07-15 20:38:17 -04:00 |
|
Justin Li
|
850cedf7ec
|
Use the bencode package to avoid hardcoded test strings
|
2014-07-15 19:35:18 -04:00 |
|
Jimmy Zelinskie
|
d2ba9fb9f7
|
repurpose drivers from mock to no-op and memory
|
2014-07-15 00:22:04 -04:00 |
|
Jimmy Zelinskie
|
8ddbf32002
|
rm last printf in http
|
2014-07-12 01:52:27 -04:00 |
|
Jimmy Zelinskie
|
292c15e519
|
responses are bencode.Dict; Closes #29.
|
2014-07-11 22:15:51 -04:00 |
|
Jimmy Zelinskie
|
dfc215115a
|
fix reversed cases
|
2014-07-11 20:44:28 -04:00 |
|
Jimmy Zelinskie
|
0f734a6069
|
when public, create non-existing torrents
|
2014-07-11 20:39:55 -04:00 |
|
Jimmy Zelinskie
|
e2af935b83
|
disambiguate routing
|
2014-07-09 01:34:34 -04:00 |
|
Jimmy Zelinskie
|
afb2376286
|
api routes; status codes fixed
|
2014-07-09 00:53:57 -04:00 |
|
Jimmy Zelinskie
|
6ee6c0bef4
|
API: putUser & putTorrent impl
|
2014-07-08 16:55:24 -04:00 |
|
Jimmy Zelinskie
|
f656133a6f
|
Tracker.Conn API made more RESTful
|
2014-07-08 05:58:00 -04:00 |
|
Jimmy Zelinskie
|
99ac8f77c8
|
Tracker.Conn interface update to better fit API
|
2014-07-07 22:44:27 -04:00 |
|
Jimmy Zelinskie
|
9e94643379
|
implemented some API funcs, added whitelist API
|
2014-07-07 22:23:01 -04:00 |
|
Jimmy Zelinskie
|
d8bcbd1dde
|
flesh out api
|
2014-07-07 21:59:41 -04:00 |
|
Jimmy Zelinskie
|
0ed8f50348
|
fix syntactic inconsistencies
|
2014-07-06 23:35:37 -04:00 |
|
Justin Li
|
86fead3056
|
Extract the bencode package to github.com/chihaya/bencode
|
2014-07-06 18:04:05 -04:00 |
|
Justin Li
|
e08f745f6c
|
Happy uber-belated new year! ✨
|
2014-07-06 17:56:54 -04:00 |
|
Jimmy Zelinskie
|
d954378791
|
specify between torrent and http errors
|
2014-07-02 00:33:19 -04:00 |
|
Jimmy Zelinskie
|
6d5290d85e
|
transition to httprouter
|
2014-07-01 21:40:29 -04:00 |
|