summary refs log tree commit diff
AgeCommit message (Collapse)Author
2006-09-12The metainfo code provided a load -> test -> struct metainfo interface.Richard Nyberg
The metainfo struct has been replaced by functions for qeurying specific items from the torrent. In addition, the tests of the torrent data has been improved.
2006-09-12Moved to ../misc/queue.hRichard Nyberg
2006-09-12Moved from ../btpd/queue.hRichard Nyberg
2006-09-12Add functions for conversions between binary data and ascii hex.Richard Nyberg
Add function for reading a whole file. Enable printf format checking for some functions.
2006-09-12Add a hashtable implementation.Richard Nyberg
2006-09-12Enable printf format type checking for buf_print.Richard Nyberg
2006-09-12Add function benc_strlen.Richard Nyberg
2006-08-06Send keepalives.Richard Nyberg
2006-08-06Reduce the number of HAVE messages sent by only sending them to peers missingRichard Nyberg
the piece. Remove seeder peers when our download is finished and remove peers who doesn't show any interest for a long time when we're seeding.
2006-08-03Torrents that were active when btpd was last killed will now be automaticallyRichard Nyberg
started when btpd starts. The new '--empty-start' option turns this off.
2006-08-03Add a delay for contacting the same announce url. This way we don't spamRichard Nyberg
a tracker with connections even if we add a lot of torrents with the same tracker at the same time.
2006-07-30Change version to 0.11 and document the changes.Richard Nyberg
2006-07-28Remove the events for a peer's socket before closing it. At least the epollRichard Nyberg
libevent backend didn't like the fd to be closed. Reported by Ludvig Omholt.
2006-07-23Change version to 0.10 and document the changes.Richard Nyberg
2006-07-23Changed the help for the '--ipcprot' option.Richard Nyberg
2006-07-23Truncate the pid file when opening it. Now it actually will contain the pidRichard Nyberg
of the btpd process :)
2006-07-23Make sure btpd_dir contains an absolute path. If btpd was started withRichard Nyberg
'-d some/releative/path' it would fail to set up the ipc socket correctly. Reported by Arnaud Bergeron.
2006-07-23Add the '--ipcprot' option to change the protection mode of the commandRichard Nyberg
socket. From Arnaud Bergeron.
2006-07-22Btpd could be DOS'ed by incoming connections that never send any data.Richard Nyberg
Strangely such connections are not entirely uncommon. Added a hand shake time out of 60 seconds to resolve this. Added a peer_on_tick function which is used to monitor peers for different timeouts. Timestamps are compared against the reborn btpd_seconds. The issue has been reported by Ludvig Omholt and Arnaud Bergeron.
2006-07-21Split out common code for btpd_log and btpd_err.Richard Nyberg
2006-07-21Use the new functions btpd_ev_(add|del) instead of calling event_(add|del)Richard Nyberg
directly. Failure to add or delete an event is treated as a fatal error.
2006-07-15Fix type mismath. From Arnaud Bergeron.Richard Nyberg
2006-03-21Changes for 0.9.Richard Nyberg
2006-03-21Version 0.9.Richard Nyberg
2006-03-20Cut off decimals after the first tenth percent so printf doesn't roundRichard Nyberg
the percentage upwards. Ie. Display 99.9%, not 100.0%, even if we have 99.98% of the content.
2006-03-18The previous commit was a bit over zealous; the block field should not beRichard Nyberg
cleared for a failed piece in the full torrent test. This also fixes a bug where the content byte count wasn't decreased for failed pieces.
2006-03-17The code for testing content that has potentially been modified between btpdRichard Nyberg
runs was quite broken. Pieces stayed marked as ok event though the hash test failed for pieces in modified files. Oops!
2006-03-16Fix a bug from the last commit: shared messages for endgame requests couldRichard Nyberg
be placed at the wrong index in the array.
2006-02-21There's now one list with requests per piece instead of one per block. TheRichard Nyberg
network buffers for requests are now allocated as they're needed. Before they were allocated at the same time as their corresponding piece. This lowers btpd's memory consumption.
2006-02-19Safer code for net_read32 and net_write32. It may have been possible for themRichard Nyberg
to cause failure on some architectures because of unaligned fetch/write of integers.
2006-02-17Two changes to stat output:Richard Nyberg
1. Show the number of torrents with tracker errors on the total status line. 2. Show the torrent status character on the status line instead of the name line. This only has effect when the '-i' flag is given.
2006-02-17Set default value of cm_alloc_size to 2MB.Richard Nyberg
2006-02-12Set its rates to zero when stopping a torrent.Richard Nyberg
2006-02-11Rewrote the README with changes for 0.8..Richard Nyberg
2006-02-11Changes for 0.8.Richard Nyberg
2006-02-11Don't allow a negative cm_alloc_size to wreak havoc. Richard Nyberg
2006-02-11Return possible error message in the http result. Log the error in theRichard Nyberg
tracker code.
2006-02-11Change preallocation default to 2048. 1 may be a little low. Richard Nyberg
2006-02-11Safer type use.Richard Nyberg
2006-02-10Fix typo.Richard Nyberg
2006-02-10Add a note on the ACX_PTHREAD macro license.Richard Nyberg
2006-02-10I don't quite like this file. I think I will use the trac site to keepRichard Nyberg
this kind of information instead.
2006-02-10Better log message.Richard Nyberg
2006-02-10Better log message.Richard Nyberg
2006-02-10Be careful not to stop the sub struct if they haven't been started. AlsoRichard Nyberg
be careful so that we don't operate on a dead torrent.
2006-02-10Oops! Forgot to free some memory.Richard Nyberg
2006-02-10Call realpath after creating the dir. At least on linux the call to realpathRichard Nyberg
may fail if the last path component doesn't exist.
2006-02-10Use c99 types conservatively to compile on OpenBSD. Also convert to or fromRichard Nyberg
time_t via long.
2006-02-10Glibc needs sys/file.h for flock.Richard Nyberg
2006-02-10Mostly name changes. Add a missing include. Changed the torrent statusRichard Nyberg
characters displayed by btcli.