Commit graph

373 commits

Author SHA1 Message Date
Justin Li 11d06f7830 Put leecherFinished in announce.go and remove unnecessary code 2014-07-22 23:31:19 -04:00
Justin Li de69eaeafe Add current peer stats 2014-07-22 23:29:30 -04:00
Justin Li 727370fedc Set default percentile window to 256 samples 2014-07-22 23:13:59 -04:00
Justin Li b6f0fc79cb Add log normal distributions to the percentile calculation tests 2014-07-22 23:00:12 -04:00
Justin Li 60fd62cc82 Add comments for the percentile type 2014-07-22 15:02:47 -04:00
Justin Li 7fce8c9ad4 Add response time stats 2014-07-22 14:57:36 -04:00
Justin Li 0a4c290ecb Safer and faster atomicity 2014-07-22 12:47:17 -04:00
Justin Li ff77a29b0a Thread safe, but unsafe 2014-07-22 12:42:56 -04:00
Justin Li a162f38281 Fast percentile implementation 2014-07-22 12:26:31 -04:00
Justin Li 2f4d0b0f9a Add base Percentile interface and tests 2014-07-22 02:41:39 -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 539a1b3774 Implement *Reaped stats 2014-07-22 01:45:22 -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 858258f884 start json renamed 2014-07-22 01:17:08 -04:00
Jimmy Zelinskie fa191de6d3 serve stats via /check 2014-07-22 01:12:41 -04:00
Justin Li e17c984ec8 Fix semantics of seed stats, fix Peer.IPv6() always returning true 2014-07-22 01:06:30 -04:00
Jimmy Zelinskie 26f87139e0 remove needless ipv6 checks 2014-07-21 21:04:28 -04:00
Justin Li dc76657af3 Switch deleted torrent event 2014-07-21 20:49:17 -04:00
Jimmy Zelinskie 2c8894fbda rollout more stats 2014-07-21 20:24:51 -04:00
Jimmy Zelinskie 24f3e6b80b announce & scrape stats 2014-07-21 19:32:36 -04:00
Jimmy Zelinskie 477f292371 global stats 2014-07-21 19:08:08 -04:00
Justin Li 8f6aaa6527 Flesh out available stats more 2014-07-21 11:42:05 -04:00
Justin Li 7a849e6f20 Defer closing connections to prevent leaking them 2014-07-21 10:57:00 -04:00
Justin Li af57763882 Commit some staged changes 2014-07-21 10:53:26 -04:00
Jimmy Zelinskie 044333a75c add stats package; it is not yet integrated 2014-07-21 03:58:56 -04:00
Jimmy Zelinskie 6b260b7352 close tracker pool connections & some style changes 2014-07-21 03:58:07 -04:00
Jimmy Zelinskie e78dc74990 added Close to tracker 2014-07-21 03:54:22 -04:00
Jimmy Zelinskie 7faa1b08ac moved together bools 2014-07-21 03:52:56 -04:00
Jimmy Zelinskie 490dfa7877 implement incrementing user's snatches 2014-07-19 04:22:27 -04:00
Jimmy Zelinskie 78d94d1e99 Change PeerMap key to PeerID 2014-07-19 04:21:28 -04:00
Jimmy Zelinskie b962f49c90 Add Close to Conn interface 2014-07-18 19:37:13 -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 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