Commit graph

633 commits

Author SHA1 Message Date
Jimmy Zelinskie
e52e4d5f1d Introduce PeerKey
PeerKeys are used to prevent overwriting of peers which want to announce
for both IPv4 and IPv6.
2014-08-01 11:21:57 -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
Justin Li
cde8251bd3 Add logging for startup failure 2014-07-25 03:43:06 -04:00
Justin Li
3b84fb3f98 Better logging 2014-07-25 03:39:02 -04:00
Justin Li
404270b0ae Disable whitelist by default 2014-07-25 03:38:50 -04:00
Justin Li
818bef28d7 More refactoring of error handling 2014-07-25 03:05:43 -04:00
Justin Li
683e90631a Add pretty stats param and refactor error handling 2014-07-25 03:01:26 -04:00
Justin Li
9a79693a4c Verbose mem stats are way too verbose to be a default
[ci skip]
2014-07-25 02:18:14 -04:00
Justin Li
36251afd67 Fix typo in example config and keep default values consistent
[ci skip]
2014-07-25 02:13:09 -04:00
Jimmy Zelinskie
64d08ca16b add whitelist flag 2014-07-25 01:48:30 -04:00
Jimmy Zelinskie
941de3d12e goimports 2014-07-25 01:46:58 -04:00
Jimmy Zelinskie
200bf30db3 refresh example config 2014-07-25 01:39:03 -04:00
Justin Li
38209e2301 Update references to FlatMap
[ci skip]
2014-07-25 00:47:29 -04:00
Justin Li
b4757e5aa8 Extract flatjson package 2014-07-24 20:41:12 -04:00
Justin Li
d3bb52f204 Correct reference to flattenPointer 2014-07-24 20:30:59 -04:00
Justin Li
8685028771 Formatting 2014-07-24 20:30:11 -04:00
Justin Li
0361056cbf Make flattening work for MemStats 2014-07-24 20:28:07 -04:00
Justin Li
47c7faf837 Reorder stats output 2014-07-24 20:28:07 -04:00
Justin Li
ab43e6bd97 Add crazy struct flattening code 2014-07-24 20:28:07 -04:00
Jimmy Zelinskie
788b349dd7 ClientError base type struct -> string 2014-07-24 19:34:17 -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
02f67b4259 Create a ClientError type to distinguish between failure modes 2014-07-24 17:57:44 -04:00
Justin Li
1a79bdeb6b Add RequestsBlocked stat counter 2014-07-24 17:48:03 -04:00
Justin Li
2779560934 Fix typo 2014-07-24 17:10:43 -04:00
Justin Li
c1c9ee07a9 Listen on all interfaces by default
[ci skip]
2014-07-24 17:08:08 -04:00
Justin Li
dfc31495b7 Fix splitting for IPv6 RemoteAddrs 2014-07-24 17:02:28 -04:00
Justin Li
4d906cf095 Add benchmark info to the README
[ci skip]
2014-07-24 00:04:29 -04:00
Jimmy Zelinskie
25e7ea98d5 add customizing section to readme 2014-07-23 23:45:53 -04:00
Justin Li
fc2d15cdc0 Change private config key to private_tracker 2014-07-23 18:48:01 -04:00
Justin Li
4252cd7eeb Rename mem_stats field to mem 2014-07-23 17:58:44 -04:00
Justin Li
7a64ae2d1b Create dummy stats object for tests 2014-07-23 17:30:38 -04:00
Justin Li
88d68a99a2 Clean up stats configuration 2014-07-23 17:25:01 -04:00
Justin Li
cf619aa50f Add memory statistics 2014-07-23 17:08:06 -04:00
Justin Li
d47cf7d4bc Move stats buffer size to the regular config 2014-07-23 16:14:50 -04:00
Justin Li
d5da5daa88 Read RealIP header from the request header map 2014-07-23 15:59:07 -04:00
Justin Li
98542c0ff1 Move tracker-specific logic out of http/query and into http 2014-07-23 15:56:15 -04:00
Justin Li
9292900afc Update readme to include new features 2014-07-23 15:43:15 -04:00
Justin Li
76c68a53b5 Add RealIPHeader configuration, and move network conf to its own struct 2014-07-23 14:00:17 -04:00
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
Jimmy Zelinskie
bd1fa3eb24 cli flag for default stats chan size 2014-07-23 03:59:23 -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
34729e3c91 Merge branch 'master' of github.com:chihaya/chihaya 2014-07-23 01:20:54 -04:00