Ömer Faruk Özer | 30 Jan 15:40 2015
Picon

hash check

Hi,

I need to take specific actions when a file is changed after it has
downloaded.

I can't find how to detect this situation.

hash_failed_alert is never called. I assume this alert is sent only when a
downloaded piece fails hash check.

force_recheck does not generate this alert too. It would be great if a
specific alert is generated when file checking detects something is wrong.

Thanks in advance
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Steve W | 30 Jan 10:44 2015
Picon

Metadata and blocking all pieces

 
Hi

I wonder if there’s a good way to download the metadata of a magnet link but block all pieces. I could
capture the metadata_received_alert and then block the pieces, but then there is inevitably a delay
between the capture of the alert and when it begins downloading pieces. Is there a more robust way for
preventing pieces from downloading?

Thank you

Steve

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
John Munroe | 28 Jan 11:39 2015
Picon

Announce not registering

Hi

I’ve noticed that the announces made to trackers don’t get registered for certain links. For
instance, using the stock client.py:

python client.py "magnet:?xt=urn:btih:5ABA63889990E3AE5B66E8C9B9E0000CD18E5AFA&tr=udp%3A%2F%2Fopen.demonii.com%3A1337”

where I just randomly generated the info hash. Even if it was randomly generated, the tracker should still
register the announce though. It works fine on clients like uTorrent, where the tracker increments the
number of peers by one. But not using libtorrent.

A request does get sent to the tracker and the tracker does respond though. I wonder why the announce isn't
registered here. Here are the packets: https://www.sendspace.com/file/d3wd21

Any help will be much appreciated.

Thank you,

John

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
(Continue reading)

Steve W | 28 Jan 09:04 2015
Picon

Issues with duplicate_is_error

 
Hi

I see that with duplicate_is_error set to False, add_torrent() returns the handle to the existing
torrent. However, should add_torrent() keep the old handle and not create a new one? It seems to be
creating a new one though. I’ve run some simple check on Python:

            print self.session.get_torrents()
            h = self.session.add_torrent(atp)
            print h, self.session.get_torrents()

and I get the following output:

[<libtorrent.torrent_handle object at 0x10aa275f0>]
<libtorrent.torrent_handle object at 0x10aa275f0>
[<libtorrent.torrent_handle object at 0x10aa271b8>]

It seems to suggest that add_torrent() does indeed behave as documented, but that handle is then replaced
by a new one. It doesn’t seem to be quite intuitive given that it returns the old but creates a new one
without returning it.

Thanks

Steve

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
(Continue reading)

Steve W | 27 Jan 08:30 2015
Picon

Seg fault with magnet links

 
Hi

My understanding is that client.py can be run using

python client.py "magnet:?xt=urn:btih:9512a1f6d21e5012c06a1c9b8e2dd4796ecc77a9&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce”

That is, giving it a magnet link as input directly. However, it gives rise to a seg fault 11 every time it’s
given a magnet link. I’m on RC_1_0. It works fine with .torrent files though. I’ve tried it in 3
sandboxes running Ubuntu 14.04 and OS X 10.10 and all give the same behaviour. Anyone has any idea?

Thanks

Steve

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Jason Fried | 27 Jan 03:01 2015
Picon

reuse_address on outgoing connections

I noticed in peer_connection.cpp that as long as we specify a outgoing port
range then we will set the reuse_address.

Can we move the statement up out of the if statement and always set the
reuse_address flag even for os chosen ports.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Bedeho Mender | 25 Jan 17:30 2015
Picon

Plugin lifetime

I'm wondering about the following about plugin lifetime:

1) When does libtorrent delete plugins, that is both at the session,
torrent and peer level?

2) Should all references to any form of plugin object in the client code,
or the plugin objects them selfs, always use a weak pointer which is never
trusted?

3) Is it possible to tell libtorrent to uninstall a plugin at the torrent
or peer level?

best
 Bedeho Mender
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
Karel Tuma | 25 Jan 12:43 2015
Picon

Common Data Transfer extension proposal

Hello list!

Seeing that libtorrent is living on the edge of things (eg. BEP 44).
I'm starting to implement the following [1] proposal in libtorrent,
and I'd like to hear opinions about it (bad idea / fundamentally
broken / whywouldyoudothat.jpg etc).

In particular, if such an extension would have chance of getting
included in libtorrent, or it's just plain too evil.

tl;dr: the gist is to make picking up shards of poorly seeded,
fragmented torrents together via client support (at the moment,
ways to do it are rather slow and cumbersome - hopping one swarm at a time).

[1] http://lua.cz/cdt.txt and also attachment

ps: Please excuse the raw english for the moment, I'll get a proper
native speaking editor if this is proven viable.
BEP: XXXX
Title: Common Data Transfer
Author:	Karel Tuma <kat <at> lua.cz>
Status: Draft
Type: Standards Track
Content-Type: text/x-rst
Created: 25-Jan-2015

abstract
--------
(Continue reading)

Steve W | 24 Jan 17:57 2015
Picon

Segmentation fault while checking alert value

 
Hi

I’m on RC_1_0 and using the Python binding. If I run the original client.py and read a value of an alert, a
Segmentation fault 11 is thrown. For instance, with the simple
patch http://dpaste.com/1B77KNN it’d give a seg fault once the alert is picked up. I’ve also
tested several other alert types, including piece_finished_alert, and all produced the same result. Is
this a bug?

Thank you

Steve

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Steve W | 24 Jan 12:35 2015
Picon

How to tell which peer sent the piece?

 
Hi

I see that the ‘piece_finished_alert’ is posted each time a piece is completed. Is there a way to find
out which peer was the sender of a piece? The alert seems to provide the piece index and the torrent handle,
but is there a way to trace back to who the peer is?

Thank you

Steve

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Diego Ximenes Mendes | 23 Jan 00:40 2015
Picon

Different upload limits to different pieces

Hi,

How can I limit the upload rate according with the piece that will be
transmitted?

Thanks,
Diego
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet

Gmane