about summary refs log tree commit diff
AgeCommit message (Collapse)Author
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
2006-10-31Add max(x, y) macro.Richard Nyberg
2006-10-29Add a simple http client. Since it uses libevent it's a better fit for btpdRichard Nyberg
than curl.
2006-10-26Don't really know why I did setlocale. Get rid of it since I want the CTYPERichard Nyberg
to be standard.
2006-10-16Random changes :)Richard Nyberg
2006-10-16Rewrote parts of the README and updated it with information on the new stuffRichard Nyberg
in 0.12.
2006-10-16Help text format change.Richard Nyberg
2006-10-15Don't call mkdirs unnecessarily. Note that this code is only needed becauseRichard Nyberg
the content code shuts down btpd on errors. When that is fixed this code can be removed.
2006-10-15Make mkdirs behave more like 'mkdir -p' and make btpd create the directoryRichard Nyberg
hierarchy to a specified torrent content directory if neccessary.
2006-10-15OpenBSD doesn't have stdint.h. It'd be great if they would implement basic c99Richard Nyberg
library support some day...
2006-10-15There's no need to fsync here, so remove the call. This should improveRichard Nyberg
write performance.
2006-10-15Always update the tlib info when a torrent is stopped. Some code shuffle.Richard Nyberg
2006-10-14Add and use the function make_abs_path. realpath didn't fit my needs.Richard Nyberg
make_abs_path doesn't need the directories to actually exist in the file system.
2006-10-14Forgot to free some memory. Remove some broken code; it wasn't neededRichard Nyberg
yet anyway. glibc doesn't have the d_namlen field in struct dirent, so we'll have to use strlen instead.
2006-10-14Update for the read_whole_file -> read_file change.Richard Nyberg
2006-10-14Create all files of a torrent at startup.Richard Nyberg
2006-10-14Add missing include.Richard Nyberg
2006-10-14Safer way to initialize the address.Richard Nyberg
2006-10-14Simplify read_whole_file and rename to read_file.Richard Nyberg
2006-10-12Document changes for 0.12.Richard Nyberg
2006-10-12Bump version to 0.12.Richard Nyberg
2006-10-12Allow empty files in torrents. Create them in stat_and_adjust and let theRichard Nyberg
stream abstraction skip past them.
2006-10-12Add missing includes.Richard Nyberg