592 Commits

Author SHA1 Message Date
730d4bb6ae Reset http request input array on error case 2010-08-09 14:22:12 +00:00
a75c824187 the keep-alive loop must not run, if no keep alive is configured or requested for connection 2010-08-09 14:20:02 +00:00
426c5f30c2 We have been too overly cautious not to read beyond the boundary. 2010-07-30 15:02:57 +00:00
3636be6cc7 Make whitelist parser more robust against comments. I assumed perfectly arranged white lists until now 2010-05-05 12:56:13 +00:00
d42bf5a031 ** 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.
2010-04-22 22:08:42 +00:00
ae9ab76941 Get rid of SYNC_SCRAPE madness. It's overkill and no one uses it. 2010-04-22 21:55:28 +00:00
3baa1abc56 Fix white spaces 2010-04-21 14:43:36 +00:00
66cda4bc75 Add our own time stamps to the completed logs. 2010-04-21 13:23:40 +00:00
85e6880233 Make opentracker's user runtime configurable. Also add more debug output to aid finding problems. 2010-04-09 10:15:51 +00:00
fc48cbed01 Fix segfault in stats?mode=everything, an additional errorcode was not commited to ot_stats 2010-04-09 09:40:12 +00:00
a1eec929a1 Only chroot if -d option or tracker.rootdir are set 2010-04-09 09:33:39 +00:00
a7cd2084df Fixed including another error message 2009-12-01 02:56:33 +00:00
f3c0359876 Make header parsing more efficient, prepare multithreading and keep-alive. 2009-11-18 04:00:26 +00:00
90e7262d9d Preparing more efficient header parsing 2009-11-18 03:56:26 +00:00
1665c54179 prevent infinite loop when looking for X-Forwarded-For: Headers 2009-11-16 18:58:34 +00:00
f4409df68a Allow logging of completed events to syslog 2009-11-12 10:18:27 +00:00
b1bf030f92 Fixed parser error for v6 addresses 2009-11-05 20:20:48 +00:00
48f67314b6 Should not report sync scrape packets in stderr 2009-10-15 19:52:17 +00:00
c27631e516 Reenable statedump 2009-10-15 19:33:30 +00:00
9d4f0e66d0 Need to compile sources for proxy 2009-10-15 18:23:20 +00:00
7f3b66b9af Add source files to proxy project 2009-10-15 18:17:03 +00:00
9be794395f v6 works since january 2009-10-08 20:27:51 +00:00
9eb860f041 Log successful incoming connections 2009-10-02 23:47:35 +00:00
9cced7eb88 Report connection duplication 2009-10-02 23:43:34 +00:00
ed1673eb10 Network connection code seems to be working now 2009-10-02 23:34:42 +00:00
cde8cf0559 Network handling code skeleton stands, is untested and no configure code there, yet. 2009-10-01 17:16:15 +00:00
5168a3314c Reaching completion soon 2009-09-29 06:03:39 +00:00
21b5baf0c1 Update project to use 10.6 CLang by default. 2009-09-02 16:30:39 +00:00
26bf39da89 #define closed too early 2009-09-02 16:01:44 +00:00
0bf88427c6 Add spotting woodpeckers, thanks to Vasya P. again 2009-09-02 02:18:36 +00:00
c76814cfec Going to the forest, spotting woodpeckers 2009-09-02 01:47:44 +00:00
6eeb16123c Cleanup s24s code, remove an ugly mem leak, thanks to Vasya P. for pointing at the bug and suggesting a fix 2009-09-01 23:45:37 +00:00
d9287403a8 add option to log the numwants over time 2009-08-30 18:04:44 +00:00
4c4303a156 Temporary feature: log amount of numwants. See if we can save traffic if we reduce max numwant to something less than 200 2009-08-30 17:57:54 +00:00
517adde681 Limit shifting in s24s cleanup code to a non-overflowing size 2009-08-30 12:54:52 +00:00
342182a496 Put the WANT_MODEST_FULLSCRAPES option into Makefile 2009-08-29 13:56:54 +00:00
478884660f Enable limiting fullscrapes to only every 5 minutes per IP 2009-08-29 13:55:59 +00:00
682bd069d2 Enable Networks debugging in Makefile 2009-08-26 21:24:49 +00:00
56c1cf1b5d Nicer formatting for value-- 2009-08-26 21:23:53 +00:00
6073127ad0 Add some subnet debugging features 2009-08-26 21:23:26 +00:00
20955311d1 Introducing the concept of vectors of nets into opentracker 2009-08-26 21:22:24 +00:00
c3a58d248b binary search speedup was buggy. 2009-08-26 21:12:32 +00:00
0c8a17cbef Optimize binary_search function 2009-08-26 17:44:03 +00:00
6c51fca9a1 Introduce the concept of an ot_net into opentracker. 2009-08-26 17:37:24 +00:00
5364ea31ca Omit a warning where signed chars can't hold 0xff. Initialisen them with -1 2009-08-26 17:35:52 +00:00
bb770a45a6 Make accesslists thread safe. Signal handler is working in its own thread now, waiting for a signal. All other threads ignore signals. 2009-07-17 18:00:26 +00:00
57f85fc7cc Debug information only in debug mode. 2009-07-17 15:53:35 +00:00
06e89257a1 Make opentracker HUGE-accesslist-ready. Parse, then sort. 2009-07-17 15:52:39 +00:00
8d25bf2d31 Double definition of all_torrents 2009-07-16 01:39:18 +00:00
dad215a6e1 Add a new proxy daemon to opentracker 2009-07-16 01:36:50 +00:00