1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-12 16:00:06 +00:00
Commit Graph

658 Commits

Author SHA1 Message Date
Dirk Engling
bfc398182f Rework fullscrape worker, unifying non-gzip and gzip code was a bad idea 2021-04-21 14:41:59 +02:00
Dirk Engling
27f8189d84 accesslist checker should not operate on an empty list 2021-04-20 22:34:23 +02:00
Dirk Engling
58dedd001d srandomdev is not available on linuxes by default 2021-04-20 04:14:11 +02:00
Dirk Engling
b73b3b17cc Use arc4random whereever we need strong entropy 2021-04-20 04:05:50 +02:00
Dirk Engling
ccef1d0ccd Use dev random by default 2021-04-20 03:49:58 +02:00
Dirk Engling
616119ee22 Turn random() to nrand48 in inner loop where it is not cryptographically relevant to avoid futex storm. Thanks and credits to Bart Smienk 2021-04-20 03:48:50 +02:00
Dirk Engling
0695b48870 White space 2021-04-20 03:31:58 +02:00
Dirk Engling
00bd3b2009 unmap file if a memory allocation error occurs 2021-04-19 22:36:24 +02:00
Dirk Engling
102ba9075b Make accesslist reload thread safe. The last commit actually would make a free possible while another thread was bsearching that memory 2021-04-19 22:33:23 +02:00
Dirk Engling
fde79836e6 Try accessing the access lists without locks by making the replacement process as atomic as possible. 2021-04-19 22:12:50 +02:00
Dirk Engling
7c905ba729 De-bottleneck mutex access code 2021-04-19 03:25:18 +02:00
Dirk Engling
6411f1567f Remove debug code for self pipes 2018-05-26 00:28:10 +02:00
Dirk Engling
d6d4fb0668 Tell libowfat about EWOULDBLOCK conditions 2018-05-26 00:25:59 +02:00
Dirk Engling
48c9c6172b register both ends of self pipe to libowfat in order to use them 2018-01-29 17:32:22 +00:00
Dirk Engling
9c7be324f5 break belongs inside the guard 2017-04-28 15:43:14 +02:00
Dirk Engling
d1e6e4486c incorporate a more verbose ascii dump, provided by Tom <tom@foscore.com> 2017-04-28 15:42:17 +02:00
Dirk Engling
d4598cc930 Get rid of some warnings regarding header guards 2017-04-28 15:41:24 +02:00
Dirk Engling
0ebc0ed6a3 Avoid double free when iob_addbuf_free fails, thanks to Sami Farin 2016-10-02 18:47:16 +02:00
Dirk Engling
ba25d2b2a8 Forgot to include one error code. Thanks to Lars Seipel 2015-12-11 17:57:53 +01:00
Dirk Engling
75c216c82d dont count scrapes as full scrapes, fall through fail 2015-11-26 20:30:00 +01:00
Dirk Engling
a215479d1a Accept was counted twice 2015-11-25 02:11:29 +01:00
Dirk Engling
a06c3cfeb7 Add missing enum value. Thanks to zhangdongmao 2015-08-30 23:56:56 +02:00
Dirk Engling
fca2b993a9 Increase number of locks to accomodate for more cores on contemporary CPUs 2015-06-08 01:44:57 +02:00
Dirk Engling
f0026ed1e0 Avoid reacting to our own error packets, should the happen to end up on our interface with a spoofed source IP. Thanks to zorun. 2015-06-05 13:34:38 +02:00
Dirk Engling
27499d7a55 Fix typo in stat reporting, use udp and not tcp counter. Thanks to zebulon 2015-04-27 22:04:45 +02:00
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