erdgeist
85df3dbc01
Open syslog connection before dropping privileges
14 years ago
erdgeist
09adf4a9e1
Prevent infinite loop if whitelist ends in several returns
14 years ago
erdgeist
216447492a
Chomp all trailing space characters, including new lines, when parsing the config file
14 years ago
erdgeist
aae0227ee6
Load state only after initialising all structs. Thanks to Michael S. Combs for pointing out the buf
14 years ago
erdgeist
894bd4625f
Stop sending tracker id with every packet
14 years ago
erdgeist
470a690e0d
Don't only walk through outgoing connections to search for connected peers
14 years ago
erdgeist
4b3189eb44
Address reconnecting issues
14 years ago
erdgeist
3e30fa32aa
Fixed sync loss bug
14 years ago
erdgeist
4fe2f35595
Looking into pointer arithmetics issue
14 years ago
erdgeist
9cfab8dbc6
tidy up peer count parser code
14 years ago
erdgeist
c8d1ae0468
Fix encoding of peer count in proxy sync packet
14 years ago
erdgeist
c005b42be4
enable proxy.debug target
14 years ago
erdgeist
8d025a1745
Tidy up sync proxy code
14 years ago
erdgeist
730d4bb6ae
Reset http request input array on error case
14 years ago
erdgeist
a75c824187
the keep-alive loop must not run, if no keep alive is configured or requested for connection
14 years ago
erdgeist
426c5f30c2
We have been too overly cautious not to read beyond the boundary.
14 years ago
erdgeist
3636be6cc7
Make whitelist parser more robust against comments. I assumed perfectly arranged white lists until now
15 years ago
erdgeist
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.
15 years ago
erdgeist
ae9ab76941
Get rid of SYNC_SCRAPE madness. It's overkill and no one uses it.
15 years ago
erdgeist
3baa1abc56
Fix white spaces
15 years ago
erdgeist
66cda4bc75
Add our own time stamps to the completed logs.
15 years ago
erdgeist
85e6880233
Make opentracker's user runtime configurable. Also add more debug output to aid finding problems.
15 years ago
erdgeist
fc48cbed01
Fix segfault in stats?mode=everything, an additional errorcode was not commited to ot_stats
15 years ago
erdgeist
a1eec929a1
Only chroot if -d option or tracker.rootdir are set
15 years ago
erdgeist
a7cd2084df
Fixed including another error message
15 years ago
erdgeist
f3c0359876
Make header parsing more efficient, prepare multithreading and keep-alive.
15 years ago
erdgeist
90e7262d9d
Preparing more efficient header parsing
15 years ago
erdgeist
1665c54179
prevent infinite loop when looking for X-Forwarded-For: Headers
15 years ago
erdgeist
f4409df68a
Allow logging of completed events to syslog
15 years ago
erdgeist
b1bf030f92
Fixed parser error for v6 addresses
15 years ago
erdgeist
48f67314b6
Should not report sync scrape packets in stderr
15 years ago
erdgeist
c27631e516
Reenable statedump
15 years ago
erdgeist
9d4f0e66d0
Need to compile sources for proxy
15 years ago
erdgeist
7f3b66b9af
Add source files to proxy project
15 years ago
erdgeist
9be794395f
v6 works since january
15 years ago
erdgeist
9eb860f041
Log successful incoming connections
15 years ago
erdgeist
9cced7eb88
Report connection duplication
15 years ago
erdgeist
ed1673eb10
Network connection code seems to be working now
15 years ago
erdgeist
cde8cf0559
Network handling code skeleton stands, is untested and no configure code there, yet.
15 years ago
erdgeist
5168a3314c
Reaching completion soon
15 years ago
erdgeist
21b5baf0c1
Update project to use 10.6 CLang by default.
15 years ago
erdgeist
26bf39da89
#define closed too early
15 years ago
erdgeist
0bf88427c6
Add spotting woodpeckers, thanks to Vasya P. again
15 years ago
erdgeist
c76814cfec
Going to the forest, spotting woodpeckers
15 years ago
erdgeist
6eeb16123c
Cleanup s24s code, remove an ugly mem leak, thanks to Vasya P. for pointing at the bug and suggesting a fix
15 years ago
erdgeist
d9287403a8
add option to log the numwants over time
15 years ago
erdgeist
4c4303a156
Temporary feature: log amount of numwants. See if we can save traffic if we reduce max numwant to something less than 200
15 years ago
erdgeist
517adde681
Limit shifting in s24s cleanup code to a non-overflowing size
15 years ago
erdgeist
342182a496
Put the WANT_MODEST_FULLSCRAPES option into Makefile
15 years ago
erdgeist
478884660f
Enable limiting fullscrapes to only every 5 minutes per IP
15 years ago