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

22 Commits

Author SHA1 Message Date
Dirk Engling
f62398c748 Clean accesslists every five minutes 2022-11-24 16:38:26 +01:00
erdgeist
5233046241 Make woodpecker spotting more usable by adjusting count every 2 minutes 2012-06-03 04:06:32 +00:00
denis
1968f47d74 silenced some clang warnings 2011-11-16 00:41:16 +00:00
erdgeist
928dc36f74 Formatting 2009-02-20 12:23:59 +00:00
erdgeist
66c906d5d3 Add comments, rename our struct http_data h to cookie, all clientsockets to sock, all size_t from socket_recvs to byte_count. Make signal handler set default handler for the second SIGINT 2009-01-15 23:01:36 +00:00
erdgeist
4ced0484ab Some premature optimization lead to always only 8bytes of ot_peers being copied 2009-01-15 22:10:54 +00:00
erdgeist
2df09905f5 * opentracker now drops permissions in correct order and really chroots() if ran as root
* lock passing between add_peer_to_torrent and return_peers_for_torrent is now avoided by providing a more general add_peer_to_torrent_and_return_peers function that can be used with NULL parameters to not return any peers (in sync case)
* in order to keep a fast overview how many torrents opentracker maintains, every mutex_bucket_unlock operation expects an additional integer parameter that tells ot_mutex.c how many torrents have been added or removed. A function mutex_get_torrent_count has been introduced.
2009-01-02 08:57:53 +00:00
erdgeist
c6947b160f Handle program end more politely 2008-12-07 03:50:51 +00:00
erdgeist
08c7162783 Renamed OT_FLAG to OT_PEERFLAG to make code easier to read
Introduced READ16/32 and WRITE16/32 makros to abstract loading/storing from unaligned addresses away on cpu's that can actually load/store everywhere
Removed all unnecessary memmoves, especially where it only moved 6 bytes in inner loop. I replaced them with WRITE16/32(READ16/32()) makros
2008-12-06 18:46:00 +00:00
erdgeist
5fb58458f6 Tidy up unnecessary includes 2008-12-05 21:28:40 +00:00
erdgeist
334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 2008-11-28 22:21:10 +00:00
erdgeist
18b6e9b212 Spread the amount of time spent in cleanup about 2 minutes 2008-11-03 01:52:23 +00:00
erdgeist
daaee855b2 Whitespace fixes 2008-10-28 01:27:22 +00:00
erdgeist
0deb06d544 Reverting last commit. Debug effect not seen. 2008-10-07 23:53:29 +00:00
erdgeist
ec0affa97d allow threads to be named. not posix compliant. 2008-10-07 23:44:59 +00:00
erdgeist
e534db03c6 added live sync code
added a config file parser
added tracker id
changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK
changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE
added an option to switch off fullscrapes

cleaned up many internal hardcoded values, like PROTO_FLAG,
2008-10-04 05:40:51 +00:00
erdgeist
c28cf398fd Introduce some kind of versioning 2007-12-20 05:59:34 +00:00
erdgeist
b0e4ebbbf2 Simplify includes 2007-12-03 00:52:05 +00:00
erdgeist
74a5afbe82 Make clean_single_torrent return much faster, if nothing is to do 2007-11-20 02:22:21 +00:00
erdgeist
49ba269b9d Cleanup now moved to its own thread, too 2007-11-19 21:10:53 +00:00
erdgeist
bbbaa0e09d Fixed warnings about newlines at end of file 2007-11-06 12:03:11 +00:00
erdgeist
8900cc0dd9 No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable. 2007-11-06 11:58:32 +00:00