Commit Graph

276 Commits (17b2ce10820ae13b2807ef94d48f04d8dfe08ab3)
 

Author SHA1 Message Date
erdgeist 005ff4e231 Simple top5 by peers/seeders table
erdgeist 4eefe49307 Prevent each invocation of clean_peerlist to call time()
erdgeist 43b60783a1 Use mrtg to do periodical cleanup. Hopefully that wont make too much load for stats.
erdgeist ade8268970 Rudimentary stats
erdgeist ec531730ab Do some timeout checking on the first possible moment
erdgeist 745985c726 Previous answer to event=stopped irritated some clients. Now reply with a static nothing-message
denis cde935b5bd set interval to default value from original tracker
erdgeist 41c307c3b0 Cast types for mrtg_scrape sprintf
erdgeist 22a0829f94 Drop permission, if we can
erdgeist ad6c1b2019 New, fixpoint distinct random algorithm for choosing peers from the list... may contain bugs. Feedback welcome
erdgeist 25781604c2 Dont want ips from query string by default
erdgeist b966435e65 Compiles with newest libowfat only
erdgeist f683b7a08e testsuite points to localhost
erdgeist 575bf7081f casting does floor() by itself
erdgeist 805e46450c Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed
erdgeist cb12e922d5 Ignore SIGPIPE. This is safe, since it only raises, when the remote site died before we could send our paket back and is catched by write() returning -1
erdgeist 74a7fbd6fe Fixed a bug where I didn't replace new buffer pointer after realloc. Fixed a bug where I didnt copy enough memory when shrinking vectors. Now save some extra bytes in header.
erdgeist 8ecfe9a36f Now we also check, if no io happens
erdgeist ac8e26f99b Some code spacifying. Added actually checking timeouts.
erdgeist 1d66041fd5 Indent. Sorry. Plus timeout on every connection, for every byte we got.
erdgeist bef60daf2b This one breaks all ;) Lets see, what happens
erdgeist 62a6f60559 add timeout for clients
erdgeist 38432480a1 shutdown was unnecessary
erdgeist 6b329a6959 tidy up options
erdgeist 17c21a0bc4 Apply some limits
erdgeist e7532408b6 black listing was the wrong way around
erdgeist 9f63a7bd63 really check g_check_blacklist flag
erdgeist c89cfaad5e Be more helpful
erdgeist 2aa03492a5 added closed tracker and blacklist code
erdgeist cdf2fbabed README\!
erdgeist 3d54ca32fe Shell Testsuite
erdgeist 33eaf54da7 simplified binary_search, it always does a memcmp. began to implement dump knowledge
erdgeist e0a9c2a4aa Added option to get ip from query string + parser, fixed two bugs concerning grow/shrink of vectors. Now cleans up a torrent BEFORE trying to remove a peer -> this may remove peer already and must be done anyway.
erdgeist f40b373c3b Remove some integer constants from code. Bad coder. Very bad coder :/
erdgeist c87389f929 Now every answer goes in one buffer
erdgeist f406961fe0 Try early answers
erdgeist e471e2c20b Missing header file
erdgeist d73b83d0f7 try shutdown() the socket after writing
denis ffc378b2b9 corrected the modifier for size_t
denis 15d9d55c34 freebsd support
erdgeist b7526f25e8 Fixed two mem leaks from httpd :/
erdgeist de03db7dcd Fixed memleak in example httpd :/
erdgeist 6286c1cea5 Made answer http/1.1
erdgeist 808e370566 random
erdgeist 1d5f915940 Division in stats now works
erdgeist ed0edcaae8 Fix port again ;) Include headers in Makefile dependencies
erdgeist b9efc8e22b fixed setport fuckup
erdgeist fcf615779d fix include
erdgeist 82b4df6751 Make code endianess save
denis 9e93e6b6e1 fixed typo