Commit Graph

585 Commits (e276eb1aeabfd6d80e14d34d5aef6255bdacd787)
 

Author SHA1 Message Date
git e276eb1aea Fix typo in stat reporting, use udp and not tcp counter. Thanks to zebulon 8 years ago
git e462e3dfa2 Protect static data by mutex 9 years ago
git 9e0443a3a6 Only kick off udp handlers, when everything is initialised 9 years ago
git 5018d4e478 Initialise all values of aes key 9 years ago
Dirk Engling 1ffaa98783 Fix immediate overwrite in the X-forwarded-for passing case. Thanks to Alexander Luetjen. 10 years ago
Dirk Engling 6490d4bc5c Fix spelling error ;) 10 years ago
Dirk Engling 4d9fd27746 Dont make srandomdev the default, it exists only in BSDs 11 years ago
Dirk Engling f8ebe3e7c8 Make woodpecker spotting more usable by adjusting count every 2 minutes 11 years ago
Dirk Engling d010868308 Calculate the old hash for the ip address only, when the current one mismatches 11 years ago
Dirk Engling 7429d85457 Dont ruin the srandomdev initialisation in trackerlogic's init 11 years ago
Dirk Engling f520745f4d Forgot variable declaration 11 years ago
Dirk Engling 8fdb3dcaee reduce zlib warnings to when there really is something failing 11 years ago
Denis Ahrens 4eec224a39 new flag to enforce gzip even if client did not request it 11 years ago
Dirk Engling ed90dee313 Add rijndael to version report 11 years ago
Dirk Engling 2d1c653f20 Remove debug info 11 years ago
Dirk Engling 9bf6cdb058 Report connection id missmatch count 11 years ago
Dirk Engling c1414b707f udp now generates a cryptographically secure token for connecting clients. This is later verified. 11 years ago
Dirk Engling 1bbbeb8db3 Init prng before udp code needs it. 11 years ago
Dirk Engling 833620b834 Add connection id missmatch code 11 years ago
Dirk Engling 2391244772 Adding rijndael code for udp connection id calculation 11 years ago
Dirk Engling a83149f5ca Do not always grow the vector, shrink the first iovec to 0 before filling the second one 11 years ago
Dirk Engling eec07fba97 Need more space for top100 11 years ago
Dirk Engling 2a92a70321 Add a top100 for most popular torrents 11 years ago
Dirk Engling 0a45984246 Add functionality to distribute udp to several workers 11 years ago
Dirk Engling 34b53c9282 undo last change, it did not work well 11 years ago
Dirk Engling b252679b25 fix tiny issue 11 years ago
Dirk Engling 648222e478 fix prototype 11 years ago
Dirk Engling a3de74bdd4 Try to act upon all udp packets at once 11 years ago
Denis Ahrens 93ce452158 silenced some clang warnings 12 years ago
Dirk Engling 731ff55b65 Open syslog connection before dropping privileges 13 years ago
Dirk Engling 0c4eb869da Prevent infinite loop if whitelist ends in several returns 13 years ago
Dirk Engling 8e6487797a Chomp all trailing space characters, including new lines, when parsing the config file 13 years ago
Dirk Engling a5606ae535 Load state only after initialising all structs. Thanks to Michael S. Combs for pointing out the buf 13 years ago
Dirk Engling 9082b56ee6 Stop sending tracker id with every packet 13 years ago
Dirk Engling f2c4ef24c3 Don't only walk through outgoing connections to search for connected peers 13 years ago
Dirk Engling 57bcf69217 Address reconnecting issues 13 years ago
Dirk Engling bb8439c69d Fixed sync loss bug 13 years ago
Dirk Engling 11841dc77e Looking into pointer arithmetics issue 13 years ago
Dirk Engling ee7dc229d0 tidy up peer count parser code 13 years ago
Dirk Engling 1f17fe9d3b Fix encoding of peer count in proxy sync packet 13 years ago
Dirk Engling dd56b16d0c enable proxy.debug target 13 years ago
Dirk Engling 63200596d2 Tidy up sync proxy code 13 years ago
Dirk Engling 2182587414 Reset http request input array on error case 13 years ago
Dirk Engling 415451cd88 the keep-alive loop must not run, if no keep alive is configured or requested for connection 13 years ago
Dirk Engling e0f3a88b2b We have been too overly cautious not to read beyond the boundary. 13 years ago
Dirk Engling 484be7c30c Make whitelist parser more robust against comments. I assumed perfectly arranged white lists until now 13 years ago
Dirk Engling 3454c159b4 ** struct ot_workstruct gets ritcher (and will become even ritcher soon).
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.
13 years ago
Dirk Engling 79a64865d9 Get rid of SYNC_SCRAPE madness. It's overkill and no one uses it. 13 years ago
Dirk Engling 927c879750 Fix white spaces 13 years ago
Dirk Engling addc3f7bc0 Add our own time stamps to the completed logs. 13 years ago