Commit Graph

92 Commits (4fc8dd75be7e511823d6ff529411896b1b5e1c7e)
 

Author SHA1 Message Date
denis 4fc8dd75be Copy request before expanding url-encoded bytes
erdgeist 2d0215d793 Debugging for failed requests.
erdgeist 00843757c0 Count successful announces extra
erdgeist bee4ad4ba0 Now allow * in torrents
erdgeist e161ef790a FD-debug also in new iob_send path
erdgeist 5f7c044b54 Full scrape, kinda tested
denis 67689057d4 increase the timeout to make the ride a little smoother for some clients
erdgeist 3d796d93f0 -m64 is not usually a correct compile option
erdgeist 07a604e3d6 Debug file descriptors
denis 6c62ed7928 *seuftz*
denis 98ed6231e1 set the interval to 1800 for announce (last change was only for scrape)
erdgeist 908649af98 From now the OT_CLIENT_TIMEOUT will be enforced, even if some data arrived inside this interval
erdgeist 7c4fcdbd97 Tidied main loop do accept() and read() before timeout()
erdgeist ccafcb0ff9 Give our server some air to check for timedout connections
erdgeist 2ee37881ff Rearranged code to try to read data as soon as socket is accepted, also raise backlog for listening socket
erdgeist c16330df6a Simple top5 by peers/seeders table
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 :/