1
0
mirror of git://erdgeist.org/opentracker synced 2025-02-04 19:16:23 +00:00

275 Commits

Author SHA1 Message Date
Dirk Engling
d3985b00b5 Remove CVS version tags, they did not work anymore after moving to git 2024-04-16 16:18:53 +02:00
Dirk Engling
8fd8a54c4e Install default signal handlers before spawning first thread 2024-04-15 23:08:16 +02:00
Dirk Engling
806a6b99cf time_caching_worker never returns, but if it would, it should return a value 2024-04-15 17:34:06 +02:00
Dirk Engling
7c633c259e clang-format 2024-04-15 00:39:02 +02:00
Dirk Engling
7428c12e5d Spelling 2024-04-14 17:34:03 +02:00
Dirk Engling
4dcb75a736 print when RANDOMTORRENTS were created 2024-04-14 17:32:52 +02:00
Dirk Engling
04e0eca0a0 Make the amount of random torrents a tunable 2024-04-14 17:31:16 +02:00
Dirk Engling
4ff25fc9c6 Revert b8ee3dfec11d1c66bee614bfab171ada9fc2bb78 2024-04-14 13:12:27 +02:00
Dirk Engling
6ae819ae10 remove debug fprintfs used to catch a bug 2024-04-14 13:12:11 +02:00
Dirk Engling
b8ee3dfec1 Use the HELPLINE macro for help lines 2024-04-14 13:09:41 +02:00
Dirk Engling
0e9cc66de2 Cancel chunked transfers on dead sockets, too 2024-04-13 19:22:36 +02:00
Dirk Engling
3a2a711a29 Fix type warnings in debug strings 2024-04-13 16:52:46 +02:00
Dirk Engling
2eeae0a65a Allow opentracker to start with a random set of torrents for debugging purposes 2024-04-13 12:26:08 +02:00
Dirk Engling
3a6d99dd46 Better track current iobatch 2024-04-13 02:54:08 +02:00
Dirk Engling
1a70d9f9ef First shot on chunked transfers 2024-04-13 00:47:29 +02:00
Dirk Engling
301faeb10c Start an extra thread to update timer cache. Using signals was unnecessary 2024-04-12 18:10:31 +02:00
Dirk Engling
9000f5d67a minor cleanups. Breaks proxy.c 2024-04-05 22:44:30 +02:00
Dirk Engling
959e0912a1 Bind dual stack by default 2024-04-03 23:08:17 +02:00
Dirk Engling
7c3279a028 Allow binding to v4 and v6 addresses always 2024-04-03 22:50:01 +02:00
Dirk Engling
543ab73017 Allow networks to be used instead of ip addresses when blessing is involved 2024-03-29 03:30:13 +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
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
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
99544a1030 Handle eagain case in trywrite 2021-05-09 00:02:13 +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
1a349bfa43 Add a handler for the EAGAIN reason code to iob_send 2021-04-21 20:14:58 +02:00
Dirk Engling
b73b3b17cc Use arc4random whereever we need strong entropy 2021-04-20 04:05:50 +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
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
d4598cc930 Get rid of some warnings regarding header guards 2017-04-28 15:41:24 +02:00
erdgeist
77c13fe6ef Only kick off udp handlers, when everything is initialised 2014-10-07 00:32:07 +02:00
erdgeist
3eeb536a44 Init prng before udp code needs it. 2012-05-28 15:24:33 +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
1af67bab1d Try to act upon all udp packets at once 2012-03-31 20:01:05 +00:00
erdgeist
85df3dbc01 Open syslog connection before dropping privileges 2010-12-11 15:50:56 +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
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
85e6880233 Make opentracker's user runtime configurable. Also add more debug output to aid finding problems. 2010-04-09 10:15:51 +00:00
erdgeist
a1eec929a1 Only chroot if -d option or tracker.rootdir are set 2010-04-09 09:33:39 +00:00
erdgeist
f3c0359876 Make header parsing more efficient, prepare multithreading and keep-alive. 2009-11-18 04:00:26 +00:00
erdgeist
90e7262d9d Preparing more efficient header parsing 2009-11-18 03:56:26 +00:00