Thanks for the answers, Arvid.
A bit out of topic, the 'rtt' value is 0 for most of the peers. It may
(based on the http://libtorrent.org/reference-Core.html#peer_info). I
want to get the rtt for all the peer I connected to. What I have done
those addresses. However, I still found the rtt with 0 value. Did I
For the 'add_piece', I wonder if it stores the pieces in the memory. I
Post by Arvid NorbergPost by Ardhi Putra PratamaHello,
I confused with the peer_info flags and attribute interpretation.
When I invoked get_peer_info(), I got a list of peer connected
(+connecting) to a particular swarm. One of the peer (called X), is
flagged as 'choked'. In the documentation, it means : "we have choked
this peer.". However, I got non-zero value on up_speed and
payload_up_speed. As far as I know, if we choked someone, we wont
upload any data to them. Is this a bug?
up_speed includes protocol chatter, like HAVE and REQUEST messages. This is
not expected to always be zero for choked peers.
With the FAST excention (from 2006 or so), choked peers are allowed to
request a small number of pieces allocated to them based on their IP
address.
see ALLOW_FAST.
Post by Ardhi Putra PratamaBtw, I also notice that my previous questions haven't been answered
1. https://sourceforge.net/p/libtorrent/mailman/message/35419928/
What's left is measure the swarm. I call get_peer_info periodically.
However, none of the peers have any 'interest' in me. (which is
understandable as I don't have any piece). Is there any way to 'fake'
this, so I can report to other peer like I have 'complete' file? The
purpose is to know which peer that has interest in each of my piece. I
just need the number, though. Is there any way to know which is the
rarest piece from the public API?
You can disable hash checking and call add_piece with garbage data to make
it look like you have those pieces. You should probably disable uploading
as well in that case, otherwise you'll be banned and disconnected from
peers.
Post by Ardhi Putra Pratama2. https://sourceforge.net/p/libtorrent/mailman/message/35419873/
I noticed that, peer tends to disconnect because of time out in very
small period. In the documentation, it should be 15 seconds (look
"peer_connect_timeout"). However, in my case, it around 4.5 second,
somehow.
There are some cases where the timeout is shorter, specifically when the
peer is expected to respond right away.
The handshake is one such case, another is unchoking a peer that is
interested, if it doesn't request anything within a certain time it may
also time out.
The easiest way to debug this is probably to set a break point in
peer_connection::disconnect and see where it's getting called from
--
Arvid Norberg
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss