Commit Graph

  • 484565b6b7 clear the freed mempointer denis 2007-02-01 22:23:56 +0000
  • 4569b9ffdf release memory for empty peer pools erdgeist 2007-02-01 17:01:03 +0000
  • 401d0759ab Wasted too much space for minimum element count. Now minimum elements in vektor is 16, it grows and shrinks by a factor of 4 and a shrinking hysteresis of a factor of 5 erdgeist 2007-02-01 16:06:17 +0000
  • 9882d74b7e Forgot to take into account, that there are OT_POOL_COUNT debuggable pools in one torrent. Fixed. erdgeist 2007-02-01 15:57:29 +0000
  • e7f6908fb2 Reserved too few space to hold all data for a memdebug erdgeist 2007-02-01 15:45:24 +0000
  • bbdc36c518 add the scrapes to the valid requests (blue mrtg line) denis 2007-02-01 15:35:01 +0000
  • f9c49e9759 el cheapo vector debugging erdgeist 2007-02-01 13:51:40 +0000
  • 62c59983cb Use multiple output buffers to try to avoid copy on write when unnecessary erdgeist 2007-02-01 13:30:58 +0000
  • 10a6586ad1 Try to shake off too stupid clients by sending an Bittorrent error rather than an HTTP 400 erdgeist 2007-01-31 09:58:32 +0000
  • 6e1ee92de6 Use signed size_t wherever appropriate erdgeist 2007-01-31 09:50:46 +0000
  • 11abb03e85 size_t cant get < 0 and thus wont report errors erdgeist 2007-01-31 02:19:17 +0000
  • 05f0d651cb On linux time.h must be included to use time() erdgeist 2007-01-30 21:29:08 +0000
  • f0ddf30389 provide mrtg with more sane strings erdgeist 2007-01-29 13:41:04 +0000
  • 5a3d6b4029 We now answer as soon as the first \n is seen 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 erdgeist 2007-01-29 02:02:03 +0000
  • 4c6bcc89ce complete_D_ ... ECODERTOODUMB erdgeist 2007-01-27 17:13:53 +0000
  • a244da8d5e really copy in new peer, even if it already existed, to remember its state erdgeist 2007-01-27 17:04:55 +0000
  • dc1099dd66 Asserts were always false :/ erdgeist 2007-01-27 16:42:57 +0000
  • 6603b51576 Due to recent issues... assert() seed counts erdgeist 2007-01-27 16:35:56 +0000
  • c094695add account downloaded before early returns erdgeist 2007-01-27 16:06:13 +0000
  • 65675cd4da fix for corrupt fullscrape. did never work until now denis 2007-01-27 08:57:11 +0000
  • 9c0248ae92 announce.php and scrape.php are now being handled erdgeist 2007-01-26 18:09:14 +0000
  • 05420c40e5 Introduce 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 clean up. erdgeist 2007-01-26 16:26:49 +0000
  • dffea5da69 return random check back intervals to our clients erdgeist 2007-01-25 14:16:26 +0000
  • 2f0658a3af Code cleanup reindenting erdgeist 2007-01-24 22:23:18 +0000
  • bcef9d56a4 Allowing more relaxed parsing of queries erdgeist 2007-01-24 21:49:41 +0000
  • c2ed48f73b Return empty dictionary for unknown scrapes erdgeist 2007-01-24 21:26:50 +0000
  • d7c00a909b Do not write, if no string is passed erdgeist 2007-01-24 21:18:42 +0000
  • 99c1ba1896 support for questionmark in URL behind the initial one denis 2007-01-24 21:12:05 +0000
  • a291ceda98 backout Revision 1.67 denis 2007-01-24 21:06:19 +0000
  • e628873416 workaround for some weird requests denis 2007-01-24 20:48:25 +0000
  • fd73f958c2 Denis wanted scrapes and erdgeist didnt give it :) denis 2007-01-24 20:20:07 +0000
  • 4fc8dd75be Copy request before expanding url-encoded bytes denis 2007-01-24 20:13:30 +0000
  • 2d0215d793 Debugging for failed requests. erdgeist 2007-01-24 12:56:15 +0000
  • 00843757c0 Count successful announces extra erdgeist 2007-01-23 15:48:51 +0000
  • bee4ad4ba0 Now allow * in torrents erdgeist 2007-01-22 02:41:09 +0000
  • e161ef790a FD-debug also in new iob_send path erdgeist 2007-01-20 14:11:53 +0000
  • 5f7c044b54 Full scrape, kinda tested erdgeist 2007-01-20 11:13:30 +0000
  • 67689057d4 increase the timeout to make the ride a little smoother for some clients denis 2007-01-20 02:50:33 +0000
  • 3d796d93f0 -m64 is not usually a correct compile option erdgeist 2007-01-20 01:50:28 +0000
  • 07a604e3d6 Debug file descriptors erdgeist 2007-01-19 17:50:36 +0000
  • 6c62ed7928 *seuftz* denis 2007-01-19 03:21:02 +0000
  • 98ed6231e1 set the interval to 1800 for announce (last change was only for scrape) denis 2007-01-19 03:19:12 +0000
  • 908649af98 From now the OT_CLIENT_TIMEOUT will be enforced, even if some data arrived inside this interval erdgeist 2007-01-18 13:06:49 +0000
  • 7c4fcdbd97 Tidied main loop do accept() and read() before timeout() erdgeist 2007-01-18 12:27:17 +0000
  • ccafcb0ff9 Give our server some air to check for timedout connections erdgeist 2007-01-18 02:40:18 +0000
  • 2ee37881ff Rearranged code to try to read data as soon as socket is accepted, also raise backlog for listening socket erdgeist 2007-01-18 02:23:18 +0000
  • c16330df6a Simple top5 by peers/seeders table erdgeist 2007-01-17 17:39:36 +0000
  • 005ff4e231 Simple top5 by peers/seeders table erdgeist 2007-01-17 11:51:55 +0000
  • 4eefe49307 Prevent each invocation of clean_peerlist to call time() erdgeist 2007-01-16 03:57:19 +0000
  • 43b60783a1 Use mrtg to do periodical cleanup. Hopefully that wont make too much load for stats. erdgeist 2007-01-16 03:44:13 +0000
  • ade8268970 Rudimentary stats erdgeist 2007-01-16 02:59:39 +0000
  • ec531730ab Do some timeout checking on the first possible moment erdgeist 2007-01-16 01:57:06 +0000
  • 745985c726 Previous answer to event=stopped irritated some clients. Now reply with a static nothing-message erdgeist 2007-01-16 01:35:10 +0000
  • cde935b5bd set interval to default value from original tracker denis 2007-01-15 23:40:58 +0000
  • 41c307c3b0 Cast types for mrtg_scrape sprintf erdgeist 2007-01-14 20:22:59 +0000
  • 22a0829f94 Drop permission, if we can erdgeist 2007-01-14 20:15:04 +0000
  • ad6c1b2019 New, fixpoint distinct random algorithm for choosing peers from the list... may contain bugs. Feedback welcome erdgeist 2007-01-13 19:06:39 +0000
  • 25781604c2 Dont want ips from query string by default erdgeist 2007-01-13 19:05:22 +0000
  • b966435e65 Compiles with newest libowfat only erdgeist 2007-01-12 03:09:56 +0000
  • f683b7a08e testsuite points to localhost erdgeist 2007-01-12 01:58:25 +0000
  • 575bf7081f casting does floor() by itself erdgeist 2007-01-12 01:22:03 +0000
  • 805e46450c Documentation improved, some reindenting (again), variable types checked, unnecessary defines removed erdgeist 2007-01-11 01:06:10 +0000
  • 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 2007-01-10 16:42:39 +0000
  • 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 2007-01-09 06:30:37 +0000
  • 8ecfe9a36f Now we also check, if no io happens erdgeist 2007-01-08 05:23:04 +0000
  • ac8e26f99b Some code spacifying. Added actually checking timeouts. erdgeist 2007-01-08 05:18:53 +0000
  • 1d66041fd5 Indent. Sorry. Plus timeout on every connection, for every byte we got. erdgeist 2007-01-08 00:57:35 +0000
  • bef60daf2b This one breaks all ;) Lets see, what happens erdgeist 2007-01-08 00:34:37 +0000
  • 62a6f60559 add timeout for clients erdgeist 2007-01-07 00:20:20 +0000
  • 38432480a1 shutdown was unnecessary erdgeist 2007-01-06 23:36:20 +0000
  • 6b329a6959 tidy up options erdgeist 2007-01-06 22:25:09 +0000
  • 17c21a0bc4 Apply some limits erdgeist 2007-01-06 22:24:09 +0000
  • e7532408b6 black listing was the wrong way around erdgeist 2007-01-05 17:01:20 +0000
  • 9f63a7bd63 really check g_check_blacklist flag erdgeist 2007-01-05 16:25:02 +0000
  • c89cfaad5e Be more helpful erdgeist 2007-01-05 13:00:06 +0000
  • 2aa03492a5 added closed tracker and blacklist code erdgeist 2007-01-05 12:25:44 +0000
  • cdf2fbabed README\! erdgeist 2007-01-05 00:00:42 +0000
  • 3d54ca32fe Shell Testsuite erdgeist 2007-01-04 21:34:10 +0000
  • 33eaf54da7 simplified binary_search, it always does a memcmp. began to implement dump knowledge erdgeist 2007-01-04 16:14:21 +0000
  • 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 2007-01-03 05:11:48 +0000
  • f40b373c3b Remove some integer constants from code. Bad coder. Very bad coder :/ erdgeist 2006-12-19 18:09:56 +0000
  • c87389f929 Now every answer goes in one buffer erdgeist 2006-12-19 18:01:28 +0000
  • f406961fe0 Try early answers erdgeist 2006-12-16 18:46:11 +0000
  • e471e2c20b Missing header file erdgeist 2006-12-16 16:14:34 +0000
  • d73b83d0f7 try shutdown() the socket after writing erdgeist 2006-12-16 16:10:57 +0000
  • ffc378b2b9 corrected the modifier for size_t denis 2006-12-16 14:49:20 +0000
  • 15d9d55c34 freebsd support denis 2006-12-16 13:27:26 +0000
  • b7526f25e8 Fixed two mem leaks from httpd :/ erdgeist 2006-12-16 13:23:12 +0000
  • de03db7dcd Fixed memleak in example httpd :/ erdgeist 2006-12-16 03:11:07 +0000
  • 6286c1cea5 Made answer http/1.1 erdgeist 2006-12-16 01:22:48 +0000
  • 808e370566 random erdgeist 2006-12-15 23:53:24 +0000
  • 1d5f915940 Division in stats now works erdgeist 2006-12-15 23:46:34 +0000
  • ed0edcaae8 Fix port again ;) Include headers in Makefile dependencies erdgeist 2006-12-15 23:38:18 +0000
  • b9efc8e22b fixed setport fuckup erdgeist 2006-12-15 23:35:40 +0000
  • fcf615779d fix include erdgeist 2006-12-15 23:29:38 +0000
  • 82b4df6751 Make code endianess save erdgeist 2006-12-15 23:28:23 +0000
  • 9e93e6b6e1 fixed typo denis 2006-12-15 22:46:01 +0000
  • 4761c70843 sorted bencoded order erdgeist 2006-12-15 22:40:33 +0000
  • 4c8d8daf06 fix for freebsd denis 2006-12-15 22:10:55 +0000
  • af147a1d14 Fixed mem leak, inmplemented mrtg_scrape erdgeist 2006-12-15 22:07:33 +0000