Commit Graph

19 Commits (4fe2f355950d0bc810e665a68ded157531c6a367)

Author SHA1 Message Date
erdgeist 928dc36f74 Formatting 16 years ago
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 16 years ago
erdgeist 4ced0484ab Some premature optimization lead to always only 8bytes of ot_peers being copied 16 years ago
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.
16 years ago
erdgeist c6947b160f Handle program end more politely 16 years ago
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
16 years ago
erdgeist 5fb58458f6 Tidy up unnecessary includes 16 years ago
erdgeist 334c6e4bbb The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. 16 years ago
erdgeist 18b6e9b212 Spread the amount of time spent in cleanup about 2 minutes 16 years ago
erdgeist daaee855b2 Whitespace fixes 16 years ago
erdgeist 0deb06d544 Reverting last commit. Debug effect not seen. 16 years ago
erdgeist ec0affa97d allow threads to be named. not posix compliant. 16 years ago
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,
16 years ago
erdgeist c28cf398fd Introduce some kind of versioning 17 years ago
erdgeist b0e4ebbbf2 Simplify includes 17 years ago
erdgeist 74a5afbe82 Make clean_single_torrent return much faster, if nothing is to do 17 years ago
erdgeist 49ba269b9d Cleanup now moved to its own thread, too 17 years ago
erdgeist bbbaa0e09d Fixed warnings about newlines at end of file 17 years ago
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. 17 years ago