summaryrefslogtreecommitdiff
path: root/opentracker.c
AgeCommit message (Collapse)Author
2007-08-18Added whitelisting to reimplement the WANT_CLOSED_TRACKER functionalityerdgeist
2007-08-18Under Linux one gets SIG_ALRMs from time to time when using epoll. Ignore those.erdgeist
2007-08-11Sort of addressed a concorrency issue when receiving mutliple SIG_HUPserdgeist
2007-07-22some subnet stats... still ugly and untested.erdgeist
2007-07-22* fixed "nobody " -> "nobody" fuckup when getpwnam-ingerdgeist
* implemented basic blacklisting: ** the file specified with -b <BLACKLIST> is read and added to a blacklist vector ** if an announce hits a torrent in that blacklist vector, add_peer_to_torrent fails ** sending a SIGHUP to the program forces it to reread the blacklists ** the server returns with a 500, which is not exactly nice but does the job for now ** an adaequat "failure reason:" should be delivered... TODO
2007-07-20Clean up pw-structserdgeist
2007-06-24add comment for udp spec locationdenis
2007-06-06check for mafic udp iddenis
2007-05-04fixed an overflow in ot_overall_* variablesdenis
2007-04-07Clean up help and usageerdgeist
2007-04-03New Makefile, incorporated some patches sent to me by Robin H. Johnsonerdgeist
2007-04-02Try to figure out nobodys uid und gid using getpwnamerdgeist
2007-03-29Fix endianess issue with blessed ips. Document -A feature.erdgeist
2007-03-28added the -A feature that blesses a certain IP address for administrative use (like sync)erdgeist
2007-03-27Added inbound part of sync. This also meant to remove the black/whitelisting as we did by now. A more scalable way to blacklist will follow.erdgeist
2007-03-27Added outbound part of sync Proposed format: d4:syncd20:<info_hash>8*N:(xxxxyy)*Nee, therefore had to refactor torrent cleanup now that it will hit all ↵erdgeist
torrents once every OT_POOL_TIMEOUT units.
2007-03-16code cleanup and more specific comments. tracker starts now also with udp port 6969 as defaultdenis
2007-03-16some udp scrape style cleanupdenis
2007-03-16support for udp scrapedenis
2007-03-16fix the stats a little for not accepting udp scrapesdenis
2007-03-15udp first connect needs to be counted as a connection toodenis
2007-03-15added the udp stats to the main statsdenis
2007-03-15new modes for udp4 and tcp4 statsdenis
2007-03-15collecting stats for udp connections (2nd try)denis
2007-03-15collecting stats for udp connectionsdenis
2007-03-13fixed udp peerport endianess handlingdenis
2007-03-13fixed udp remoteport handlingdenis
2007-03-13some 64bit and endianess issues with udp...erdgeist
2007-03-10make full scrapes a bit faster, increase checkback time for udperdgeist
2007-03-08Port is a short, not a longerdgeist
2007-03-07Sanify handling of server socketserdgeist
2007-03-06udp is working in theory, return_peers_for_torrent accepts a switch to request an udp answer. Fixed prototypes.erdgeist
2007-03-05Can now handle multiple ips/ports, can BIND to udp ports but not yet handle them, now checks if event=completed comes with left=0 and drops it, if it doesnterdgeist
2007-02-03zero copy sockets do only work on page aligned buffers for page sized blocks. So remove the code that tried to take advantage of false assuming, it would ↵erdgeist
work on any buffer
2007-02-02fixed the last commit. now it really counts the scrapes and fullscrapesdenis
2007-02-01add the scrapes to the valid requests (blue mrtg line)denis
2007-02-01el cheapo vector debuggingerdgeist
2007-02-01Use multiple output buffers to try to avoid copy on write when unnecessaryerdgeist
2007-01-31Try to shake off too stupid clients by sending an Bittorrent error rather than an HTTP 400erdgeist
2007-01-31Use signed size_t wherever appropriateerdgeist
2007-01-31size_t cant get < 0 and thus wont report errorserdgeist
2007-01-29provide mrtg with more sane stringserdgeist
2007-01-29We now answer as soon as the first \n is seenerdgeist
We do not copy input buffer to socket's input array anymore, if we find \n in first buffer We simplified parsing of input string We removed asserts that were needed to debug negative seeder counts We split static input and output buffers for obvious reasons We enlarged static output buffer to prepare multi scrape functionality We removed -lm from Makefile, this lib was only needed, when our random algorithm worked on floats We close fds now that come with an empty iocookie into write loop, those don't make sense We documented query string parser in opentracker.c a lot better to help auditing
2007-01-27complete_D_ ... ECODERTOODUMBerdgeist
2007-01-27account downloaded before early returnserdgeist
2007-01-26announce.php and scrape.php are now being handlederdgeist
2007-01-26Introduce another unspec'd command: sync which syncs the most recent peer pool for a torrent out. Do some variable type clean up. Do some code structure ↵erdgeist
clean up.
2007-01-25return random check back intervals to our clientserdgeist
2007-01-24Code cleanup reindentingerdgeist
2007-01-24backout Revision 1.67denis