summaryrefslogtreecommitdiff
path: root/ot_stats.c
AgeCommit message (Collapse)Author
2024-05-10Initialise top leechers vectorDirk Engling
2024-05-10Add top100 torrents by leechers to the listDirk Engling
2024-04-16Remove CVS version tags, they did not work anymore after moving to gitDirk Engling
2024-04-15clang-formatDirk Engling
2024-04-13white spaceDirk Engling
2024-04-10Reserve enough memory to hold all peer timeout bucketsDirk Engling
2024-04-03Bind dual stack by defaultDirk Engling
2024-04-03Prepare opentracker for dual stack capabilitiesDirk Engling
2024-03-07Remember hash and not torrent pointer for use after releasing the lock on torrent vectorDirk Engling
2021-08-22Mark return code of write() as intentionally unusedDirk Engling
2015-12-11Forgot to include one error code. Thanks to Lars SeipelDirk Engling
2015-11-26dont count scrapes as full scrapes, fall through failDirk Engling
2015-04-27Fix typo in stat reporting, use udp and not tcp counter. Thanks to zebulonDirk Engling
2012-06-03Make woodpecker spotting more usable by adjusting count every 2 minuteserdgeist
2012-05-29Add rijndael to version reporterdgeist
2012-05-28Report connection id missmatch counterdgeist
2012-05-28Add connection id missmatch codeerdgeist
2012-05-18Do not always grow the vector, shrink the first iovec to 0 before filling the second oneerdgeist
2012-05-18Need more space for top100erdgeist
2012-05-18Add a top100 for most popular torrentserdgeist
2011-11-16silenced some clang warningsdenis
2010-12-11Open syslog connection before dropping privilegeserdgeist
2010-04-22** struct ot_workstruct gets ritcher (and will become even ritcher soon).erdgeist
This is where we encapsulate all per-request data from peer to hash to peer_id, so that it is available everywhere without passing hundreds of pointers down the stack. Most functions that do work down the stack now accept an ot_workstruct and some flags. So it can end up in the stats/event-handler where it will be the default parameter in the future. ** peer_id is now being copied by default and moved to ot_workstruct So it is available in stats and subsequent functions. ** sync scrape madness is gone SYNC_SCRAPE was intended to sync tracker state that would normally be lost on restarts i.e. downloaded counts per torrent. The way was to push it in the tracker cloud after finding all neighbouring trackers. This is madness. It never was tested and can be done per tracker by fetching stats/mode=statedump from time to time and starting opentracker with the -l option later. ** livesync thread has its own ot_workstruct now So it can behave like ot_udp and ot_http against trackerlogic.c and get rid of the first half of the embarrassing global variables. The sending half will be fixed soon [tm]. ** stats can log completed events The author recognizes the needs of original content distributors to keep track of the amount of times a work has been downloaded. While not feasible and used on openbittorrent and other open and anonymous tracker installations, a tracker user can now choose to send those events to syslog.
2010-04-21Fix white spaceserdgeist
2010-04-21Add our own time stamps to the completed logs.erdgeist
2010-04-09Fix segfault in stats?mode=everything, an additional errorcode was not commited to ot_statserdgeist
2009-11-12Allow logging of completed events to syslogerdgeist
2009-09-02#define closed too earlyerdgeist
2009-09-02Add spotting woodpeckers, thanks to Vasya P. againerdgeist
2009-09-01Cleanup s24s code, remove an ugly mem leak, thanks to Vasya P. for pointing at the bug and suggesting a fixerdgeist
2009-08-30Temporary feature: log amount of numwants. See if we can save traffic if we reduce max numwant to something less than 200erdgeist
2009-08-30Limit shifting in s24s cleanup code to a non-overflowing sizeerdgeist
2009-08-26Add some subnet debugging featureserdgeist
2009-07-15Make opentracker return tracker id in stats=everything requesterdgeist
2009-06-17Remove unnecessary =NULL initialization of static pointers.erdgeist
2009-06-16Display v4 addresses in v4 mode nicererdgeist
2009-06-15Major rewrite of live bad network logging. You can now limit logging to any netmask. HTTP interface for that coming soon.erdgeist
2009-03-25Make our stats xml validate againerdgeist
2009-03-24include overall completed count in statserdgeist
2009-03-18Fix XML syntaxerdgeist
2009-03-17Fix white spaceserdgeist
Introduce loading tracker states with -l Alter tracker state to a human readable form
2009-03-12Found some minor issues in busy network detection code.erdgeist
2009-03-12Re-implement logging busy networks to handle v6 API.erdgeist
Implement a state dump for later reparsing.
2009-03-04Add a everything stats page. So you won't have to remember what all those switches were.erdgeist
Remove the prepared Add/Remove-Torrent count until we implement it. Remove the start/stop count until we implement it.
2009-03-04Add a stat option the count bucket stallserdgeist
Add an iterator for all torrents. It's slower but for stats it's okay. Move some stats collection stuff to the new iterator. More to come. Start a "report all stats" page. Start fixing the code to identify "busy" networks. Add the concept of hosts allowed to proxy. Add a parser for the X-Forwarded-For: HTTP header. Clean up HTTP Header handling code. (Remove some left overs of now vanished sync code).
2009-02-03Formattingerdgeist
2009-01-26Make snprintf write to the correct locationerdgeist
2009-01-21This memmove was for real...erdgeist
2009-01-15Add comments, rename our struct http_data h to cookie, all clientsockets to sock, all size_t from socket_recvs to byte_count. Make signal handler set ↵erdgeist
default handler for the second SIGINT
2009-01-13V6erdgeist