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

634 Commits

Author SHA1 Message Date
Dirk Engling
9f08041585 Fix tasklist iterators 2024-03-08 16:59:26 +01:00
Dirk Engling
384799b5b3 Merge branch 'master' into erdgeist-fix-top10-stats 2024-03-07 04:10:28 +01:00
Dirk Engling
4baec2592c handle -1 length reads properly 2024-03-07 04:09:42 +01:00
Dirk Engling
9c98e1e775 Remember hash and not torrent pointer for use after releasing the lock on torrent vector 2024-03-07 03:29:46 +01:00
Dirk Engling
cc24e1ab2d Add error if WANT_DYNAMIC_ACCESSLIST is enabled without any accesslist 2023-02-22 22:36:12 +01:00
Dirk Engling
6e591d7437 Add atomicity qualifier 2022-11-25 00:11:47 +01:00
Dirk Engling
f62398c748 Clean accesslists every five minutes 2022-11-24 16:38:26 +01:00
Dirk Engling
be825f5759 Add support for dynamic accesslists 2022-11-24 04:20:06 +01:00
Dirk Engling
110868ec4e Fix return code check inversion introduced in last commit 2021-08-23 18:12:23 +02:00
Dirk Engling
e89905166c Mark return code of write() as intentionally unused 2021-08-22 14:45:19 +02:00
Romain Porte
019d58d154 fix implicit fallthrough spelling
This commit fixes the syntax of the implicit fallthrough comments, in
order to be matched by GCC (and probably other compilers as well) with
the following regular expression:

[ \t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )? fall(s | |-)?thr(ough|u)[
\t.!]*(-[^\n\r]*)?

See: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough=
2021-08-22 14:42:17 +02:00
Romain Porte
c4fc41a831 opentracker.c: check set*id return values
This commit fix the following similar warnings:

    opentracker.c:562:7: warning: ignoring return value of ‘setegid’
    declared with attribute ‘warn_unused_result’ [-Wunused-result]
    […]

The man page of these functions ask users to explicitly check the return
value in case of any error happening.
2021-08-22 14:40:31 +02:00
Dirk Engling
9a20ebe3f2 Fix typo. Thanks to Romain Porte 2021-07-27 23:15:48 +02:00
Dirk Engling
68a17b3ae4 Obey DESTDIR macro. Thanks to Romain Porte 2021-07-27 23:15:17 +02:00
Dirk Engling
80faf1c452 Using strip from enviroment to allow different strippers 2021-06-06 03:02:14 +02:00
Dirk Engling
298fe52f52 Make accesslists work again by testing the actual result of bsearch. Thanks to Hanno 2021-06-05 11:25:55 +02:00
Dirk Engling
3168071175 Fix two issues when splitting an iovec to large iobatches 2021-05-09 00:07:32 +02:00
Dirk Engling
99544a1030 Handle eagain case in trywrite 2021-05-09 00:02:13 +02:00
Dirk Engling
e33efb5086 Add newline to debug string 2021-05-09 00:00:55 +02:00
Dirk Engling
0178c27662 Merge branch 'split-iobatches' of erdgeist.org:opentracker into split-iobatches 2021-04-25 18:24:05 +02:00
Dirk Engling
dfe687aa81 Remove old mman header 2021-04-25 18:23:57 +02:00
Dirk Engling
397cd035a4 Turn mmaps into malloc 2021-04-25 18:23:00 +02:00
Dirk Engling
2f228c27c2 Retry successful writes immediately 2021-04-25 13:30:24 +02:00
Dirk Engling
95f1780f0b Split huge iovecs over multiple io_batches 2021-04-24 03:25:30 +02:00
Dirk Engling
e87978860b gzip iovecs always end on the boundary and don't need to be fixed 2021-04-22 03:03:55 +02:00
Dirk Engling
1a349bfa43 Add a handler for the EAGAIN reason code to iob_send 2021-04-21 20:14:58 +02:00
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