Switch branches/tags
Commits on Aug 4, 2010
  1. Text updates for btpd 0.16.

    queueRAM committed Aug 4, 2010
Commits on Jul 30, 2010
  1. Added custom formats for list operation.

    Added printf()-style '%' and '\' sequences for custom list formats.
    Updated btcli manpage to reflect change and start -a.
    Closes GH-8
    queueRAM committed Jul 30, 2010
Commits on Jul 27, 2010
  1. Add multiple torrents at once.

    Modified patch from savrus and nicm.
    Allows adding multiple torrents from one 'btcli add' command.
    Also made minor improvements to add code.
    Closes GH-9
    queueRAM committed Jul 27, 2010
  2. Fix warning on no return value from non-void function.

    There was a warning at the end of addrinfo_td because it returns
    a "void *" but had no return statement.  The fix was call pthread_exit().
    queueRAM committed Jul 27, 2010
Commits on Jul 23, 2010
Commits on Jul 20, 2010
  1. Don't set a maximum file size. read_file will use the file size.

    There was a hard-coded 2MB file size limit on the .torrent files.
    Set the limit to 0 so read_file() will use the actual file size.
    Closes GH-14
    queueRAM committed Jul 20, 2010
Commits on Jul 18, 2010
  1. Applied patches from OpenBSD to fix addrinfo and HTTP.

    Applied OpenBSD patches from Nicholas Marriott.
    Closes GH-12
    queueRAM committed Jul 18, 2010
  2. Added man pages for btcli, btinfo, and btpd.

    Lars Nooden originally put these together for OpenBSD.
    They contain the same information from --help and the README.
    queueRAM committed Jul 18, 2010
Commits on Feb 17, 2009
  1. Fix possible crash with kqueue.

    With kqueue, a fdev may be in two active kevents.
    rmn64k committed Feb 17, 2009
Commits on Feb 10, 2009
  1. test(1)'s equality operator is '=' not '=='.

    '==' does work in some implementations though.
    rmn64k committed Feb 10, 2009
Commits on Feb 9, 2009
  1. Text updates for btpd 0.15.

    rmn64k committed Feb 9, 2009
  2. Run timeouts that will expire in less than one millisecond.

    The timeouts for poll and epoll are given in milliseconds,
    which caused busy looping in the event loop for timeouts
    with less time remaining.
    rmn64k committed Feb 9, 2009
Commits on Feb 8, 2009
  1. Add test case for compiling with pthreads.

    On some systems no extra flags or libs are needed.
    rmn64k committed Feb 8, 2009
  2. Use the correct address length for connect.

    The incorrect length caused problems on MacOs X.
    rmn64k committed Feb 8, 2009
  3. Log failure of PROG_SILENT_IFELSE to config.log.

    There really should be a btter way to do this, but I can't
    find it. :(
    rmn64k committed Feb 8, 2009
  4. Indicate post 0.14 version.

    rmn64k committed Feb 8, 2009
Commits on Feb 7, 2009
  1. Text updates for btpd 0.14.

    rmn64k committed Feb 7, 2009
  2. Find and ban peers with bad data.

    Log which peer contributed what to a piece. Do not try to download the
    same piece from the same peers. Don't download at all from peers implicated
    in 3 bad pieces. When a previously bad piece has been downloaded successfully
    the bad peer(s) can be found and banned.
    rmn64k committed Feb 7, 2009
Commits on Feb 6, 2009
  1. Split peer information. Make id hash functions available.

    struct peer is now peer and meta_peer. meta_peer can be used as
    a handle that won't be affected if a peer vanishes. The meta_peers
    are kept in a hash table to enable fast lookup by peer id.
    rmn64k committed Feb 6, 2009
  2. Hashtable tweaks.

    o Added ability to set the ratio items:buckets.
    o One can remove items while iterating.
    o _htbl_tov now allocates the result array, _htbl_fillv acts as the old
      _htbl_tov did.
    rmn64k committed Feb 6, 2009
Commits on Feb 3, 2009
  1. Make net->piece_count properly aligned.

    The misalignment caused btpd to not work properly on machines like
    the NSLU2. Reported by John Caldwell.
    rmn64k committed Feb 3, 2009
  2. Set logmask from commandline.

    rmn64k committed Feb 3, 2009
  3. Fix port type confusion.

    Btpd will now be able to use high ports for itself and trackers again.
    rmn64k committed Feb 3, 2009
Commits on Jan 30, 2009
  1. Use only IPv4 by default.

    Unfortunately there are some useless IPv6 trackers that will
    be used instead of their more usefull IPv4 counterparts when
    IPv6 is enabled.
    The -4 and -6 options are tweaked once again. If -6 is given
    only IPv6 will be used. If both are given both will be used
    and otherwise only IPv4 will be used.
    The IPvX stuff should probably be set per torrent in the future.
    rmn64k committed Jan 30, 2009
  2. Set failures on individual trackers, not on tiers.

    Unfortunately many don't understand the tracker tiers and put unrelated
    trackers in the same tier. Thus btpd can't assume that a failure from one
    tracker in a tier is valid for all trackers in that tier.
    rmn64k committed Jan 30, 2009
Commits on Jan 29, 2009
  1. Rename timer* to evtimer*.

    rmn64k committed Jan 29, 2009