Commit Graph

  • b4757e5aa8 Extract flatjson package Justin Li 2014-07-24 20:41:12 -04:00
  • d3bb52f204 Correct reference to flattenPointer Justin Li 2014-07-24 20:30:59 -04:00
  • 8685028771 Formatting Justin Li 2014-07-24 20:30:11 -04:00
  • 0361056cbf Make flattening work for MemStats Justin Li 2014-07-24 20:27:20 -04:00
  • 47c7faf837 Reorder stats output Justin Li 2014-07-24 19:36:57 -04:00
  • ab43e6bd97 Add crazy struct flattening code Justin Li 2014-07-24 19:35:15 -04:00
  • 788b349dd7 ClientError base type struct -> string Jimmy Zelinskie 2014-07-24 19:34:17 -04:00
  • b08195aeef Rename RequestsBlocked to ClientErrors and remove special cases from tracker code Justin Li 2014-07-24 18:01:26 -04:00
  • 02f67b4259 Create a ClientError type to distinguish between failure modes Justin Li 2014-07-24 17:57:44 -04:00
  • 1a79bdeb6b Add RequestsBlocked stat counter Justin Li 2014-07-24 17:48:03 -04:00
  • 2779560934 Fix typo Justin Li 2014-07-24 17:10:43 -04:00
  • c1c9ee07a9 Listen on all interfaces by default Justin Li 2014-07-24 17:08:08 -04:00
  • dfc31495b7 Fix splitting for IPv6 RemoteAddrs Justin Li 2014-07-24 17:02:28 -04:00
  • 4d906cf095 Add benchmark info to the README Justin Li 2014-07-24 00:04:29 -04:00
  • 25e7ea98d5 add customizing section to readme Jimmy Zelinskie 2014-07-23 23:45:53 -04:00
  • fc2d15cdc0 Change private config key to private_tracker Justin Li 2014-07-23 18:48:01 -04:00
  • 4252cd7eeb Rename mem_stats field to mem Justin Li 2014-07-23 17:58:44 -04:00
  • 7a64ae2d1b Create dummy stats object for tests Justin Li 2014-07-23 17:30:38 -04:00
  • 88d68a99a2 Clean up stats configuration Justin Li 2014-07-23 17:25:01 -04:00
  • cf619aa50f Add memory statistics Justin Li 2014-07-23 17:08:06 -04:00
  • d47cf7d4bc Move stats buffer size to the regular config Justin Li 2014-07-23 16:14:50 -04:00
  • d5da5daa88 Read RealIP header from the request header map Justin Li 2014-07-23 15:59:07 -04:00
  • 98542c0ff1 Move tracker-specific logic out of http/query and into http Justin Li 2014-07-23 15:56:15 -04:00
  • 9292900afc Update readme to include new features Justin Li 2014-07-23 15:43:15 -04:00
  • 76c68a53b5 Add RealIPHeader configuration, and move network conf to its own struct Justin Li 2014-07-23 14:00:17 -04:00
  • 8369bbbcd8 Allow configuring if a peer may have 2 IPs Justin Li 2014-07-23 13:36:31 -04:00
  • b227fc1fcd Support dual-stacked peers Justin Li 2014-07-23 13:15:04 -04:00
  • 14843b9e89 Add AllowIPSpoofing configuration Justin Li 2014-07-23 13:08:52 -04:00
  • bd1fa3eb24 cli flag for default stats chan size Jimmy Zelinskie 2014-07-23 03:59:23 -04:00
  • 4295ad739c Reorder peer stats to provide a more readable output Justin Li 2014-07-23 02:25:35 -04:00
  • bacf4f0fd4 Add really really verbose log level Justin Li 2014-07-23 02:25:15 -04:00
  • f2cc5188dd Amend announce test to include an instance of the started event Justin Li 2014-07-23 01:39:20 -04:00
  • 2a400a0419 Handle ErrBadRequest after HandleAnnounce is called Justin Li 2014-07-23 01:34:40 -04:00
  • 856568f1a8 Always log errors Justin Li 2014-07-23 01:31:22 -04:00
  • 84195deb58 Correctly handle ErrBadRequest in the announce handler Justin Li 2014-07-23 01:24:31 -04:00
  • 34729e3c91 Merge branch 'master' of github.com:chihaya/chihaya Jimmy Zelinskie 2014-07-23 01:20:54 -04:00
  • f8d12054c5 log request failures Jimmy Zelinskie 2014-07-23 01:20:48 -04:00
  • 9054c1364a Don't error if the client is sending a started event Justin Li 2014-07-23 01:20:25 -04:00
  • e7481b31c1 Don't write ipv6 peers field if empty Justin Li 2014-07-23 00:56:11 -04:00
  • b99e5e0c36 Add compact announce tests Justin Li 2014-07-23 00:55:57 -04:00
  • 6396990e52 Move errors to tracker/models Justin Li 2014-07-23 00:37:30 -04:00
  • 6c7abdfa2d Don't return an HTTP error for "bad request" tracker errors Justin Li 2014-07-23 00:33:00 -04:00
  • ba1ad7f5bf Prevent non-active peers from announcing events Justin Li 2014-07-23 00:30:11 -04:00
  • 8625c4b3c4 Update the easter egg Justin Li 2014-07-23 00:12:29 -04:00
  • 7400792cc4 Use a single goroutine for stats aggregation Justin Li 2014-07-22 23:49:00 -04:00
  • ce2e335562 Remove IPv4/IPv6 stats specializations and replace with RecordPeerEvent Justin Li 2014-07-22 23:41:20 -04:00
  • 11d06f7830 Put leecherFinished in announce.go and remove unnecessary code Justin Li 2014-07-22 23:31:19 -04:00
  • de69eaeafe Add current peer stats Justin Li 2014-07-22 23:29:30 -04:00
  • 727370fedc Set default percentile window to 256 samples Justin Li 2014-07-22 23:13:59 -04:00
  • b6f0fc79cb Add log normal distributions to the percentile calculation tests Justin Li 2014-07-22 23:00:12 -04:00
  • 60fd62cc82 Add comments for the percentile type Justin Li 2014-07-22 15:02:47 -04:00
  • 7fce8c9ad4 Add response time stats Justin Li 2014-07-22 14:57:36 -04:00
  • 0a4c290ecb Safer and faster atomicity Justin Li 2014-07-22 12:47:17 -04:00
  • ff77a29b0a Thread safe, but unsafe Justin Li 2014-07-22 12:42:56 -04:00
  • a162f38281 Fast percentile implementation Justin Li 2014-07-22 12:26:31 -04:00
  • 2f4d0b0f9a Add base Percentile interface and tests Justin Li 2014-07-22 02:41:39 -04:00
  • 8d8c1fba62 Don't write nil compact peer lists Justin Li 2014-07-22 01:59:05 -04:00
  • 9b60b3144e Fix copy and paste error Justin Li 2014-07-22 01:56:48 -04:00
  • 539a1b3774 Implement *Reaped stats Justin Li 2014-07-22 01:44:36 -04:00
  • 38d2c91ff1 Implement RequestsHandled and RequestsErrored stats Justin Li 2014-07-22 01:40:52 -04:00
  • 6fdb68d9b2 Implement OpenConnections and ConnectionsAccepted stats Justin Li 2014-07-22 01:38:07 -04:00
  • 4514705363 re-add /check as per discussion Jimmy Zelinskie 2014-07-22 01:19:09 -04:00
  • 858258f884 start json renamed Jimmy Zelinskie 2014-07-22 01:17:08 -04:00
  • fa191de6d3 serve stats via /check Jimmy Zelinskie 2014-07-22 01:12:41 -04:00
  • e17c984ec8 Fix semantics of seed stats, fix Peer.IPv6() always returning true Justin Li 2014-07-22 01:06:30 -04:00
  • 26f87139e0 remove needless ipv6 checks Jimmy Zelinskie 2014-07-21 21:04:28 -04:00
  • dc76657af3 Switch deleted torrent event Justin Li 2014-07-21 20:49:17 -04:00
  • 2c8894fbda rollout more stats Jimmy Zelinskie 2014-07-21 20:24:51 -04:00
  • 24f3e6b80b announce & scrape stats Jimmy Zelinskie 2014-07-21 19:32:36 -04:00
  • 477f292371 global stats Jimmy Zelinskie 2014-07-21 19:08:08 -04:00
  • 8f6aaa6527 Flesh out available stats more Justin Li 2014-07-21 11:42:05 -04:00
  • 7a849e6f20 Defer closing connections to prevent leaking them Justin Li 2014-07-21 10:57:00 -04:00
  • af57763882 Commit some staged changes Justin Li 2014-07-21 10:53:26 -04:00
  • 044333a75c add stats package; it is not yet integrated Jimmy Zelinskie 2014-07-21 03:58:56 -04:00
  • 6b260b7352 close tracker pool connections & some style changes Jimmy Zelinskie 2014-07-21 03:58:07 -04:00
  • e78dc74990 added Close to tracker Jimmy Zelinskie 2014-07-21 03:54:22 -04:00
  • 7faa1b08ac moved together bools Jimmy Zelinskie 2014-07-21 03:52:56 -04:00
  • 490dfa7877 implement incrementing user's snatches Jimmy Zelinskie 2014-07-19 04:22:27 -04:00
  • 78d94d1e99 Change PeerMap key to PeerID Jimmy Zelinskie 2014-07-19 04:21:28 -04:00
  • b962f49c90 Add Close to Conn interface Jimmy Zelinskie 2014-07-18 19:37:13 -04:00
  • 5bd3b3efb3 update docs all around Jimmy Zelinskie 2014-07-18 19:09:06 -04:00
  • cd0a3436b7 Add IPv6 peers to the subnet tests Justin Li 2014-07-17 14:38:01 -04:00
  • 664b365061 Refactor announce test helpers Justin Li 2014-07-17 14:28:55 -04:00
  • 6b089342d1 Simplify subnet preference code considerably Justin Li 2014-07-17 14:15:05 -04:00
  • 794657274a Add tests for subnet preference Justin Li 2014-07-17 14:14:29 -04:00
  • 9b30a4cb16 Use literal dicts where possible for performance Justin Li 2014-07-17 13:16:27 -04:00
  • 19f03499a2 Fix wording in a couple comments Justin Li 2014-07-17 12:45:30 -04:00
  • 809735c504 rm extra if; add missing expr for ipv6 subnet Jimmy Zelinskie 2014-07-17 08:27:08 -04:00
  • f54f688ab2 correct comment [ci-skip] Jimmy Zelinskie 2014-07-17 04:21:12 -04:00
  • 07081e1027 Add support for preferring peers in the same subnet Jimmy Zelinskie 2014-07-17 04:17:43 -04:00
  • d219341c26 Add new option to the example config, and update README Justin Li 2014-07-17 01:49:41 -04:00
  • 414e14f826 Remove a small file, and add comments Justin Li 2014-07-17 01:45:14 -04:00
  • 199496bfa6 Move backend to root level, combine announce tests, rename files Justin Li 2014-07-17 01:26:34 -04:00
  • 67a8473f6e Clean up types more Justin Li 2014-07-17 01:14:50 -04:00
  • 9dde295b7c Move AnnounceResponse and ScrapeResponse to models Justin Li 2014-07-17 01:10:50 -04:00
  • 3ad3f11b2c Put the query package into http, since it is for http only Justin Li 2014-07-17 01:00:26 -04:00
  • 343b3358a1 Move NewAnnounce and NewScrape to http, since they are an implementation detail Justin Li 2014-07-17 00:54:53 -04:00
  • ed126dda29 Update tests and fix a couple failures Justin Li 2014-07-17 00:41:59 -04:00
  • da19ed3e21 Separate tracker logic from the http package, step 1 Justin Li 2014-07-17 00:09:56 -04:00
  • f8047ef8ab Reorganize main package structure per discussion Justin Li 2014-07-16 20:33:38 -04:00