Commit Graph

676 Commits (a3d27dff8c5eeff4b9ad56f0d54646d9bb5026d7)
 

Author SHA1 Message Date
Dirk Engling a3d27dff8c Remove unused macro 2024-04-13 16:54:20 +02:00
Dirk Engling 638ca0f56c Use asprintf to allocate header instead of fixed array 2024-04-13 16:53:29 +02:00
Dirk Engling 3a2a711a29 Fix type warnings in debug strings 2024-04-13 16:52:46 +02:00
Dirk Engling bd4992435c Add proper parsing for the gzip content encoding 2024-04-13 14:04:18 +02:00
Dirk Engling 35f55290f3 Make chunked transfers use gzip also 2024-04-13 12:51:04 +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 52d9829f81 Reserve enough memory to hold all peer timeout buckets 2024-04-10 01:13:59 +02:00
Dirk Engling 1b976863fc white space 2024-04-10 00:25:45 +02:00
Dirk Engling ffa7b81690 Only query torrents if we actually found one 2024-04-09 02:50:45 +02:00
Dirk Engling 18a746b89d report full peer and seed count for both address families 2024-04-07 21:29:36 +02:00
Dirk Engling aedd7e30cb Silence warning on older compilers 2024-04-07 00:37:38 +02:00
Dirk Engling 18554498c2 Whitespace fix 2024-04-07 00:06:54 +02:00
Dirk Engling b7b84bdec4 Number of reported removed peers was too high, correct it by size of peer 2024-04-07 00:06:27 +02:00
Dirk Engling db28465e0c if copying seeders from behind, use compare_size to advance pointer 2024-04-06 21:35:15 +02:00
Dirk Engling d9a5f04675 Return peer from both address families on announce 2024-04-06 19:21:03 +02:00
Dirk Engling 880d5145a0 Avoid incompatible pointer type warning 2024-04-06 00:55:24 +02:00
Dirk Engling 29784f1f41 Add stddef header 2024-04-06 00:29:45 +02:00
Dirk Engling b4d948696d Improve example for proxy network addresses 2024-04-05 22:52:18 +02:00
Dirk Engling 9000f5d67a minor cleanups. Breaks proxy.c 2024-04-05 22:44:30 +02:00
Dirk Engling 524d78d6c7 constify 2024-04-05 16:30:02 +02:00
Dirk Engling 64e25b681c Ignore object files 2024-04-05 03:30:00 +02:00
Dirk Engling 83a0a108e0 Merge branch 'dualstack-opentracker' of erdgeist.org:opentracker into dualstack-opentracker 2024-04-05 03:27:17 +02:00
Dirk Engling a09609d94e Enable live syncing v6 peers 2024-04-05 03:26:42 +02:00
Dirk Engling 8ccf4b43d7 gcc is no longer default cc 2024-04-04 18:00:50 +02:00
Dirk Engling 308e91a2fa -pthread needs to be in CFLAGS 2024-04-04 17:56:35 +02:00
Dirk Engling 9f615bbebf -pthread is the only necessary linker option for pthread API 2024-04-04 17:55:27 +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 2afc4893bf Prepare opentracker for dual stack capabilities 2024-04-03 22:25:30 +02:00
Dirk Engling eb8834f778 Move further towards dual stack capable opentracker, name more constants 2024-04-01 23:00:34 +02:00
Dirk Engling 9275eb3f82 Clean up pointer to task object 2024-04-01 00:52:34 +02:00
Dirk Engling 73e839f5ff Tidy up v6 handler 2024-04-01 00:48:09 +02:00
Dirk Engling aca3ee0ac8 Prevent proxied ips of the wrong flavour to poison our clients 2024-03-31 13:36:26 +02:00
Dirk Engling 5b98dcf3a3 Limit ipv6 udp replies to an amount that does not create too large UDP packets. Credits to anonymous donor 2024-03-30 00:34:28 +01:00
Dirk Engling a3251ffac7 mask bits to be checked in ot_net 2024-03-29 03:58:23 +01:00
Dirk Engling 5805fe5f86 Dont take address of address 2024-03-29 03:44:31 +01: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 ede702c7ff Add docs about reverse proxies 2024-03-10 14:45:31 +01:00
Dirk Engling 6604d65779 Some clients have added the /stats URL as /announce URL and cause a lot of expensive operations. Prevent that 2024-03-09 23:58:41 +01:00
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