Commit Graph

559 Commits (648222e47864bc4bf7a5dec71e72bdfef8eb4b7c)
 

Author SHA1 Message Date
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
Dirk Engling fb532e4017 Make opentracker's user runtime configurable. Also add more debug output to aid finding problems. 13 years ago
Dirk Engling b29921871f Fix segfault in stats?mode=everything, an additional errorcode was not commited to ot_stats 13 years ago
Dirk Engling d4104b5431 Only chroot if -d option or tracker.rootdir are set 13 years ago
Dirk Engling 191efe6194 Fixed including another error message 14 years ago
Dirk Engling cfd90eaf0c Make header parsing more efficient, prepare multithreading and keep-alive. 14 years ago
Dirk Engling 432764e079 Preparing more efficient header parsing 14 years ago
Dirk Engling 64792cbf4f prevent infinite loop when looking for X-Forwarded-For: Headers 14 years ago
Dirk Engling a3aacfd6a6 Allow logging of completed events to syslog 14 years ago
Dirk Engling e1a770034e Allow logging of completed events to syslog 14 years ago
Dirk Engling 74df02abc7 Fixed parser error for v6 addresses 14 years ago
Dirk Engling dca357818b Should not report sync scrape packets in stderr 14 years ago
Dirk Engling 8bbced1515 Reenable statedump 14 years ago
Dirk Engling ceafe85123 Need to compile sources for proxy 14 years ago
Dirk Engling 11aa190c74 Add source files to proxy project 14 years ago
Dirk Engling 77cadf946f v6 works since january 14 years ago
Dirk Engling b3cf443f8b Log successful incoming connections 14 years ago
Dirk Engling 3ba454b893 Report connection duplication 14 years ago
Dirk Engling c6d5071afe Network connection code seems to be working now 14 years ago
Dirk Engling fd149f843e Network handling code skeleton stands, is untested and no configure code there, yet. 14 years ago
Dirk Engling bf836643e5 Reaching completion soon 14 years ago
Dirk Engling 8ce146ff78 Update project to use 10.6 CLang by default. 14 years ago
Dirk Engling e6754bb7f6 #define closed too early 14 years ago
Dirk Engling 8a870f3d0a Add spotting woodpeckers, thanks to Vasya P. again 14 years ago
Dirk Engling 1fbf2f4706 Going to the forest, spotting woodpeckers 14 years ago
Dirk Engling 81f2a1c0a9 Cleanup s24s code, remove an ugly mem leak, thanks to Vasya P. for pointing at the bug and suggesting a fix 14 years ago
Dirk Engling e87008f160 add option to log the numwants over time 14 years ago