Karl Kuehn | 16 Apr 04:15 2014
Picon

in-memory files

	I am contemplating a project where I would use libtorrent as on end of a http proxy (so the client would see a
http connection, but the data would be gathered via libtorrent). This means that I would only need the
chunks once, and after they were given over to the client I could dispose of them (keeping some to hand to
other peers). So I would not really want this data to ever go to disk.

	My question is: how much hacking on libtorrent would I have to do to make this work? Am I really trying to swim
up-stream, or does this sound like something that could be accomplished with some hacking around?

--
	Karl Kuehn
	larkost <at> softhome.net

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Alexander Dyagilev | 10 Apr 12:54 2014
Picon

Crash in torrent::file_progress

HI!

I have a running download.

I have a function which saves the download's state to disk.

First, it queries the fast resume data. Succeeds.

Then, it tries to query files progress using torrent_handle::file_progress.

This function creates a separate thread and wait for it to complete.

The thread calls torrent::file_progress, which calls this:

std::vector<size_type> progress;
file_progress(progress);   <-------- CRASH HERE

screenshot with the place in code where the crash occurs is attached.
It crashes always.

Access to torrent_handle is synchronized using mutex.
It exists and it's valid.

The crash does not occur in case LT is compiled with the all 
optimizations turned off.
------------------------------------------------------------------------------
Put Bad Developers to Shame
(Continue reading)

Christiaan Maks | 6 Apr 00:36 2014

Keeps peers connected

Hi all, 
I'm working on a project that downloads pieces manually, e.g. by settings the deadline and priorities. The
thing I'm noticing is that every time the torrent is 'finished' (when all pieces that are not priority 0,
are downloaded) all peers are disconnected. If a new piece is set to download, the clients have to be
reconnected which takes a significant amount of time.
Is there any way around this? Can the peers stay connected even when the torrent is finished?
Much thanks! 		 	   		  
------------------------------------------------------------------------------
phixion | 31 Mar 01:50 2014
Picon

Error: Short Read

Hello all!

I am running Deluge 1.3.6 / Libtorrent 0.15.10 on Debian 7 and am seeing
this error on just 1 tracker.

<tracker name>: Error: short read

I've been in contact with staff there and they say they have no idea why I
am seeing this error, I've checked their forums and can't find anyone else
reporting the same issue.

Does anyone know what could be causing this? I manually compile and have
done so a few times in an attempt to fix this, but no luck.

Thank you for reading.

Regards,

Phixion
------------------------------------------------------------------------------
Jason Fried | 26 Mar 04:22 2014

ipv6 traffic class

tos gets set properly for ipv4but what about ipv6 sockets?
—
Sent from Mailbox for iPhone
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
arvid | 23 Mar 20:47 2014
Picon
Picon

libtorrent 0.16.16 released

Download it here:

    
http://sourceforge.net/projects/libtorrent/files/libtorrent/libtorrent-rasterbar-0.16.16.tar.gz/download

Changes since previous release:

	* add missing add_files overload to the python bindings
	* improve error handling in http gunzip
	* fix debug logging for banning web seeds
	* improve support for de-selected files in full allocation mode
	* fix dht_bootstrap_alert being posted
	* SetFileValidData fix on windows (prevents zero-fill)
	* fix minor lock_files issue on unix

--

-- 
Arvid Norberg

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
sledgehammer999 | 23 Mar 12:40 2014

Build OpenSSL with

I subscribed to the mailing list to answer this. Can someone forward this
to the original poster? I cannot get his email from sf.net and I didn't get
the initial post.

The solution is to use bjam/b2 from boost 1.53. Boost 1.54 and 1.55 have
broken it for mingw. I didn't bother reporting it upstream. Furthermore
they seem to try to use the "del" command(instead of rm) from inside msys
which isn't available as a separate executable. It is a builtin command of
the windows prompt. I have no idea what they change in boost that affected
this.
PS: you can use the 1.53 b2 with the 1.55 sources. (and of course openssl
has nothing to do with it. If you want instructions on how to build latest
openssl under mingw don't hesitate to ask)

>I am able to compile libTorrent on windows using mingw32 but I am having
>problems when I include openSSL into the build. I copied the openSSL header
>files to libTorrent's include folder and now all the objects compile to
>make the .o files without errors. But I get a weird message when it finally
>tries to build the libTorrent.a file.

>C:\_tmp\libtorrent-rasterbar-0.16.15>bjam gcc boost=source link=static
>encryption=openssl -d+2
>BOOST_ROOT = C:\_tmp\boost_1_55_0
>CXXFLAGS =
>LDFLAGS =
>OS = NT
>link.jam: No such file or directory
>RmTemps
>bin\gcc-mingw-4.5.4\debug\boost-source\encryption-openssl\link-static\threading-multi\libtorrent.a(clean)

(Continue reading)

Hernan Di Pietro | 21 Mar 21:38 2014
Picon

Problems with metadata download in local network

I'm using Libtorrent 0.16.15 on Windows using Magnet links to obtain files.

Problem is that I cannot download proper metadata. I've LSD and port
mapping activated. This seems to occur with local network.

Logging output:

portmap_log_alert: NAT-PMP: ==> port map [ mapping: 3 action: add proto:
tcp local: 49333 external: 49333 ttl: 3600 ]

state_changed_alert: 20434de6d3547b22fce895d7bfc90: state changed to: dl
metadata

torrent_added_alert: 20434de6d3547b22fce895d7bfc90 added

torrent_resumed_alert: 20434de6d3547b22fce895d7bfc90 resumed

tracker_announce_alert: 20434de6d3547b22fce895d7bfc90 (udp://
tracker.publicbt.com:80/announce) sending announce (started)

stats_alert: 20434de6d3547b22fce895d7bfc90: [1000] 0 0 0 0 0 0 0 0 0 0

tracker_reply_alert: 20434de6d3547b22fce895d7bfc90 (udp://
tracker.publicbt.com:80/announce) received peers: 2

stats_alert: 20434de6d3547b22fce895d7bfc90 [1000] 0 0 0 0 0 0 0 0 0 0

peer_connect_alert: 20434de6d3547b22fce895d7bfc9 peer (1xx.1xx.31.35,
Unknown) connecting to peer

(Continue reading)

Hernan Di Pietro | 21 Mar 20:20 2014
Picon

Messaging between peers.

I'm developing a custom application using the BT protocol, with
libtorrent-rasterbar as library; and I'm trying to implement a chat or
custom-messaging between peers feature.

For example, I would like to know if my connected peer has finished the
download (got all the pieces for the requested files). This way I want to
notify a seeder that a peer got all pieces.

e.g I could receive an alert at one client with some data indicating the
sender peer or user identification, and a code indicating status or
behaviour from the user.

I've looked in the libtorrent-rasterbar documentation and found the "chat"
extension; however, seems that it was removed, I didn't find traces of the
"chat" feature in the latest 16.15 source, or at least I don't know how to
use it.

Any help is appreciated.

Thanks.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Moritz Warning | 15 Mar 02:24 2014
Picon

set_download_rate_limit(-1)


Hi,

I found some odd behavior of set_download_rate_limit(-1):

import libtorrent

ses = libtorrent.session()
ses.set_download_rate_limit(-1)
print(ses.download_rate_limit())

This code prints 0. But I assume it should be -1 since it is a valid value according to the docs.

Ideas?
mwarning
Pedro | 7 Mar 17:39 2014
Picon

Build OpenSSL with

I am able to compile libTorrent on windows using mingw32 but I am having
problems when I include openSSL into the build. I copied the openSSL header
files to libTorrent's include folder and now all the objects compile to
make the .o files without errors. But I get a weird message when it finally
tries to build the libTorrent.a file.

C:\_tmp\libtorrent-rasterbar-0.16.15>bjam gcc boost=source link=static
encryption=openssl -d+2
BOOST_ROOT = C:\_tmp\boost_1_55_0
CXXFLAGS =
LDFLAGS =
OS = NT
link.jam: No such file or directory
RmTemps
bin\gcc-mingw-4.5.4\debug\boost-source\encryption-openssl\link-static\threading-multi\libtorrent.a(clean)

    del /f /q
"bin\gcc-mingw-4.5.4\debug\boost-source\encryption-openssl\link-static\threading-multi\libtorrent.a"
2>nul >nul & setlocal

CreateProcessA() Windows API failed: 2 - The system cannot find the file
specified.

Not sure how I can see what files and where its looking? I suspect its the
two .a files for openSSL. I tries putting them inside the lib folder for
mingw but that didn't do anything. Not sure how to link the exact path to
the files for this project. Maybe something else is wrong?

The site's build instructions omit how to build with openSSL for windows.
So I'm completely stumped at this point.
(Continue reading)


Gmane