erdgeist
6c60309745
Protect static data by mutex
2014-10-07 01:34:00 +02:00
erdgeist
77c13fe6ef
Only kick off udp handlers, when everything is initialised
2014-10-07 00:32:07 +02:00
erdgeist
9816750420
Initialise all values of aes key
2014-10-07 00:01:30 +02:00
erdgeist
954f5029df
Fix immediate overwrite in the X-forwarded-for passing case. Thanks to Alexander Luetjen.
2013-08-04 10:05:35 +00:00
erdgeist
4b6f7a7a54
Fix spelling error ;)
2013-06-07 14:03:37 +00:00
erdgeist
85dfec1822
Dont make srandomdev the default, it exists only in BSDs
2012-06-08 19:21:46 +00:00
erdgeist
5233046241
Make woodpecker spotting more usable by adjusting count every 2 minutes
2012-06-03 04:06:32 +00:00
erdgeist
8741c91a7d
Calculate the old hash for the ip address only, when the current one mismatches
2012-06-03 00:17:07 +00:00
erdgeist
7e2bef9bf7
Dont ruin the srandomdev initialisation in trackerlogic's init
2012-06-03 00:15:59 +00:00
erdgeist
eed4a42292
Forgot variable declaration
2012-05-31 22:58:36 +00:00
erdgeist
f6c9dd8a13
reduce zlib warnings to when there really is something failing
2012-05-29 22:10:14 +00:00
denis
7d36ea2732
new flag to enforce gzip even if client did not request it
2012-05-29 20:42:00 +00:00
erdgeist
0d4909e631
Add rijndael to version report
2012-05-29 03:41:49 +00:00
erdgeist
95a4ed9043
Remove debug info
2012-05-28 19:08:01 +00:00
erdgeist
dc90c8867c
Report connection id missmatch count
2012-05-28 19:05:02 +00:00
erdgeist
37db5f94fa
udp now generates a cryptographically secure token for connecting clients. This is later verified.
2012-05-28 15:26:13 +00:00
erdgeist
3eeb536a44
Init prng before udp code needs it.
2012-05-28 15:24:33 +00:00
erdgeist
ae16a23ae0
Add connection id missmatch code
2012-05-28 15:15:32 +00:00
erdgeist
44e004ac9a
Adding rijndael code for udp connection id calculation
2012-05-28 14:47:58 +00:00
erdgeist
8e683affd1
Do not always grow the vector, shrink the first iovec to 0 before filling the second one
2012-05-18 08:45:32 +00:00
erdgeist
50b5c750cc
Need more space for top100
2012-05-18 08:34:35 +00:00
erdgeist
05e0de1a5f
Add a top100 for most popular torrents
2012-05-18 05:16:57 +00:00
erdgeist
914e0ac302
Add functionality to distribute udp to several workers
2012-04-25 05:48:16 +00:00
erdgeist
ae413a675b
undo last change, it did not work well
2012-04-01 04:11:27 +00:00
erdgeist
8bf40b6717
fix tiny issue
2012-04-01 03:23:50 +00:00
erdgeist
09f1234aa9
fix prototype
2012-04-01 03:22:15 +00:00
erdgeist
1af67bab1d
Try to act upon all udp packets at once
2012-03-31 20:01:05 +00:00
denis
1968f47d74
silenced some clang warnings
2011-11-16 00:41:16 +00:00
erdgeist
85df3dbc01
Open syslog connection before dropping privileges
2010-12-11 15:50:56 +00:00
erdgeist
09adf4a9e1
Prevent infinite loop if whitelist ends in several returns
2010-08-26 01:36:32 +00:00
erdgeist
216447492a
Chomp all trailing space characters, including new lines, when parsing the config file
2010-08-18 00:43:12 +00:00
erdgeist
aae0227ee6
Load state only after initialising all structs. Thanks to Michael S. Combs for pointing out the buf
2010-08-17 01:06:22 +00:00
erdgeist
894bd4625f
Stop sending tracker id with every packet
2010-08-15 16:38:43 +00:00
erdgeist
470a690e0d
Don't only walk through outgoing connections to search for connected peers
2010-08-15 14:54:40 +00:00
erdgeist
4b3189eb44
Address reconnecting issues
2010-08-15 13:59:08 +00:00
erdgeist
3e30fa32aa
Fixed sync loss bug
2010-08-15 01:59:09 +00:00
erdgeist
4fe2f35595
Looking into pointer arithmetics issue
2010-08-14 15:22:20 +00:00
erdgeist
9cfab8dbc6
tidy up peer count parser code
2010-08-14 11:30:54 +00:00
erdgeist
c8d1ae0468
Fix encoding of peer count in proxy sync packet
2010-08-14 10:56:14 +00:00
erdgeist
c005b42be4
enable proxy.debug target
2010-08-14 01:08:13 +00:00
erdgeist
8d025a1745
Tidy up sync proxy code
2010-08-13 12:47:15 +00:00
erdgeist
730d4bb6ae
Reset http request input array on error case
2010-08-09 14:22:12 +00:00
erdgeist
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
erdgeist
426c5f30c2
We have been too overly cautious not to read beyond the boundary.
2010-07-30 15:02:57 +00:00
erdgeist
3636be6cc7
Make whitelist parser more robust against comments. I assumed perfectly arranged white lists until now
2010-05-05 12:56:13 +00:00
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.
2010-04-22 22:08:42 +00:00
erdgeist
ae9ab76941
Get rid of SYNC_SCRAPE madness. It's overkill and no one uses it.
2010-04-22 21:55:28 +00:00
erdgeist
3baa1abc56
Fix white spaces
2010-04-21 14:43:36 +00:00
erdgeist
66cda4bc75
Add our own time stamps to the completed logs.
2010-04-21 13:23:40 +00:00
erdgeist
85e6880233
Make opentracker's user runtime configurable. Also add more debug output to aid finding problems.
2010-04-09 10:15:51 +00:00