about summary refs log tree commit diff
AgeCommit message (Collapse)Author
2007-06-20Create the peer id and random seed based on the host name, port andRichard Nyberg
the time of the initialization in seconds and microseconds.
2007-05-23Fix the '--topdir' option for single file torrents without a top directory.Richard Nyberg
Such torrents were saved as 'name/name' instead of 'name'. The option broke in rev253. Patch from borg@uu3.net.
2007-05-21Fix bug in benc_length. benc_first shouldn't be used here since it returnsRichard Nyberg
NULL on empty lists or dictionaries. This could cause crashes. Reported by Robert Jonsson.
2007-05-20Clean up the #include sections in the btpd files. Most common headers andRichard Nyberg
all btpd headers are included through btpd.h.
2007-05-19Added some more info to CHANGES and version information to README. v0.13Richard Nyberg
2007-05-19#include order.Richard Nyberg
2007-05-19Fix problem introduced in r345. A call to http_get could cause theRichard Nyberg
callback to be called before http_get returned.
2007-05-19I had missed a check for tracker errors. When a torrent is stopping it'sRichard Nyberg
supposed to stop if it can't contact the tracker in STOP_ERRORS tries.
2007-05-19Fix from libevent r353.Richard Nyberg
2007-05-19Only keep one block of outgoing data in memory.Richard Nyberg
2007-05-19Don't try to resolve the host if it is already given as an ip address.Richard Nyberg
2007-05-19btpd doesn't need pthreads and curl, and libevent is included. ScratchRichard Nyberg
the dependencies from the README.
2007-05-19Changes for 0.13.Richard Nyberg
2007-05-19Update the info files regularly. Before they were only updated when a torrentRichard Nyberg
stopped.
2007-05-19Update for 2007.Richard Nyberg
2007-05-18Set torrent deletion flag as parameter to torrent_stop. Update torrent infoRichard Nyberg
in torrent_stop rather than torrent_kill. The data doesn't change but there may be some time between the two events.
2007-05-18o Rename net_(write|read)32 to (enc|dec)_be32. Add similar functions for 64Richard Nyberg
bits as well. Implement them in libmisc instead of in btpd. o Change resume file format and related APIs. The resume files are now memory mapped.
2007-05-18Some code for udp trackers. Not done yet, so it isn't hooked to the build.Richard Nyberg
2007-05-18Update to libevent-1.3b.Richard Nyberg
2007-02-25Some better logging.Richard Nyberg
2007-02-25Update to libevent from patches-1.3 r335.Richard Nyberg
2007-02-24Some clean up of the values sent for tget answers. Send values that makesRichard Nyberg
sense instead of errors. Fix wrong type for IPC_TVAL_CSIZE, reported by Arnaud Bergeron.
2007-02-24Get rid of tp->relpath.Richard Nyberg
2007-02-24Only trigger error handling if an error actually occured. :PRichard Nyberg
2007-02-24o Make errors when reading or writing torrent data non fatal. Instead ofRichard Nyberg
killing btpd, only the troublesome torrent will be stopped. o Some code shuffle.
2007-01-30Call peer_on_no_reqs at the appropriate time.Richard Nyberg
2006-11-15Add an option to specify the ip the tracker should distribute for this peer.Richard Nyberg
2006-11-15Fix bug in get_op. Increase the tracker error counter, and reduce the timeoutRichard Nyberg
for trying the next url, for url's that we can't use. The timeout is in this case just there to keep btpd from busy looping on a bad url.
2006-11-08Fix evbuffer_add_vprintf. Patch taken from ↵Richard Nyberg
<http://monkeymail.org/archives/libevent-users/2006-October/000299.html>.
2006-11-08Fix return value from evdns_resolv_conf_parse and initialization of theRichard Nyberg
dns transaction id.
2006-11-08Update COPYRIGHT to match the current copyrights and licenses in the btpdRichard Nyberg
package.
2006-11-08Update the build scripts for the following events:Richard Nyberg
o Some new source files. o Inclusion of libevent. o Removal of curl and pthreads dependencies.
2006-11-08Remove files not needed by btpd. Make the build scripts more suitable forRichard Nyberg
btpd.
2006-11-07Bring in fixes from libevent trunk.Richard Nyberg
2006-11-07Include libevent 1.2 in btpd.Richard Nyberg
2006-11-06Remove a couple of forgotten debug printfs.Richard Nyberg
2006-11-06Instead of immediately reading all data a peer requests into outgoing netRichard Nyberg
buffers, we put placeholder buffers on the list and fill them as they are needed. At most 4 blocks will be filled per peer we upload to. This number should probably be made tunable or be based on SO_SNDBUF or something. Anyway, this should lower btpd's memory usage if one has many uploads.
2006-11-04Must call next_url if the current url cannot be requested.Richard Nyberg
2006-11-03Initialize the interval variable even when we don't read its value from theRichard Nyberg
tracker reply.
2006-11-03Avoid unnecessary operations on tracker stop. Use STOP_ERRORS constantRichard Nyberg
for the number of tracker errors to tolerate when we're stopping.
2006-11-03Missed this file in the last commit. Simplify some interfaces by pollingRichard Nyberg
for state changes when appropriate instead of being called directly at any time.
2006-11-03Make the content code unthreaded and remove the no longer needed interRichard Nyberg
thread messaging code. Also simplify some interfaces by polling for state changes when appropriate instead of being called directly at any time.
2006-11-02Add bts_filename which gets the current filename from a bt_stream.Richard Nyberg
2006-10-31Add initialization of evdns.Richard Nyberg
2006-10-31Now that btpd doesn't use select, we don't need to limit fd's to FD_SETSIZERichard Nyberg
unless libevent uses the select method.
2006-10-31Remove calls to the already removed old http code.Richard Nyberg
2006-10-31Some cleanup. Use names for some numeric constants.Richard Nyberg
2006-10-31Split the tracker code into a generic part and a http specific part. ThisRichard Nyberg
allows me to add code for other types of trackers. Remove the curl interface glue, since I use my own http client now. The curl code was my main reason for using threads, so I'm a large step closer to make btpd unthreaded again.
2006-10-31Rename callback type, add timeouts and and allow any http version in theRichard Nyberg
reply.
2006-10-31No parenthesis needed around a string value.Richard Nyberg