Adam Williamson
5d11289b4c
fix some 'format not a string literal's
11 years ago
Miguel Freitas
8e80324c36
try to reduce the level of useless dht tracker requests by not announcing empty torrents we do not follow.
11 years ago
Miguel Freitas
8287b2b1e1
use a single database for all swarms of the same libtorrent session.
...
upgrade resume file to version 2 and enforce on loading (to force existing clients to download all pieces again).
fixes #24 .
11 years ago
Miguel Freitas
60db413630
less noisy
11 years ago
Miguel Freitas
1ae5745151
another we_dont_have() due to disk read error.
...
the idea is to help recovering faster from db corruption problems.
11 years ago
Miguel Freitas
8328c7222f
use we_dont_have to recover from corrupt swarm database.
...
eventually we will download the pieces again (it works)
11 years ago
Miguel Freitas
9aec1f6c73
libtorrent fix from upstream
11 years ago
Miguel Freitas
77cfe2cd6c
libtorrent fix: should prevent the infinite sequence of auto manager triggering
11 years ago
Miguel Freitas
2c256b6edb
implement piece verification using old signatures. now i can reenable banning peers due to bad pieces.
11 years ago
Miguel Freitas
658ed6054a
export number of known torrent peers (list_peers) to the dht tracker resource and use it
...
as estimative to the number of followers. at least we get the number of *online* followers.
11 years ago
Miguel Freitas
2cd0b0a881
rescandirectmsgs: rescan all streams of users we follow for new and old directmessages
11 years ago
Miguel Freitas
c9e2b88920
try another improvement to local dht tracker updating: currently connected nodes or recently connected (4 hours)
11 years ago
Miguel Freitas
40803b910c
improve last commit: only announce to local dht tracker if we ever connected to peer.
11 years ago
Miguel Freitas
ac76c967ae
do not add peers with high failcount to the local dht tracker
11 years ago
Miguel Freitas
c0ec1f4afe
Until old public key is properly used, disable banning torrent peers due to bad piece hashes.
...
+note: torrent.cpp line 3286 (function piece_failed), iteration to ban peers is disabled (continue)
11 years ago
Miguel Freitas
19f5c3cc0e
-1 is not used anymore for max_id since it breaks "geting up to post 0"
11 years ago
Miguel Freitas
73c4a88516
remove "unfinished" entry of resume file. it makes no sense when pieces per block = 1
11 years ago
Miguel Freitas
cb7f080b75
less noisy. disable some dht announce and already connected messages
11 years ago
Miguel Freitas
dc3b1b2c47
keep track of rt and dm messages and filter dm from get_pieces (getposts rpc)
11 years ago
Miguel Freitas
5e68d4e2ae
new getposts rpc
11 years ago
Miguel Freitas
98903d5a73
keep track of last "have" for each torrent
11 years ago
Miguel Freitas
cefb94e321
allow bitfield with different number of pieces
11 years ago
miguel
ef084487f4
fix torrent/swarm path and add resume file
11 years ago
miguel
5112e73a07
newpostmsg command, working.
11 years ago
miguel
e4a943c745
some crash fixes, disable ut_metadata, fix m_name
11 years ago
miguel
6fb557e33c
more untested stuff: try to preserve piece_size when reading from disk.
...
first signature checking instead of hash.
11 years ago
miguel
6b9c27048e
partial untested torrent chages. will use leveldb for storage, no more multi-files per torrent, number of pieces may increase.
11 years ago
Miguel Freitas
7af7927f5d
some more debuging to make sure new dht announce x torrent peers is working
11 years ago
Miguel Freitas
d149565509
avoid adding ourselves to torrent peers
11 years ago
Miguel Freitas
24fd6a6a8a
start torrent automatically for neighbor of tracker
11 years ago
Miguel Freitas
662c5fa833
big announce / getPeers change
...
1) getPeers is obsolete, peers are obtained from getData with r="tracker", t="m"
2) announce api of node.cpp is used to update our own memory table (of the tracker)
3) announce api of node.cpp only do getDate/announce to the network if peer is the local one
4) announcement rpc (to the network) might be removed in future (not sure)
11 years ago
Miguel Freitas
b8b2302d59
added libtorrent (svn rev 8690)
12 years ago