Egor Orekhov | 1 Feb 13:49 2016
Picon

Bad sequence of writing operations when resume data used

Hi
I have a problem with using resume data.
My lib version is 0.16.19. I have a huge amount of files packed in big compressed pack and implemented custom
read/write operations for it. So I want to use them through my own implementation of libtorrent::storage_interface.
After each piece finished I save restore data using same way as described in documentations.
Here is code that write resume data on disk:
if(save_resume_data_alert *srda = alert_cast<save_resume_data_alert>(a))
{
      const wg::String tempPath = path + _T(".newresume");

      std::ofstream resumeDataStream(tempPath.c_str(), std::ios_base::binary);
      resumeDataStream.unsetf(std::ios_base::skipws);
      bencode(std::ostream_iterator<char>(resumeDataStream), *srda->resume_data);
      resumeDataStream.close();
      RenameFile(tempPath.c_str(), path.c_str());
}
and here is some code for reading operaions
      std::ifstream resumeDataStream(resumeDataFileName.c_str(), std::ios_base::binary);
      const bool haveResumeData = resumeDataStream.good();

      if(haveResumeData)
      {
            resumeDataStream.unsetf(std::ios_base::skipws);
            ts.resume_data = new std::vector<char>;
            ts.resume_data->insert(
                  ts.resume_data->begin(),
                  std::istreambuf_iterator<char>(resumeDataStream),
                  std::istreambuf_iterator<char>());
      }
//ts is add_torrent_params object which then goes to session::add_torrent
(Continue reading)

sledgehammer999 | 30 Jan 20:24 2016

Is there a way to see all available options for b2 and how to build the docs

I am starting to play with 1.1.x. I see that some options for b2 were
renamed or removed.
Is there a way to make it spew all available switches?

What is the equivalent of the old "boost=source" switch?
geoip is gone completely, right?
If I have "crypto=openssl" do I need to also set "encryption=on"?
I see in the Jamfile a `windows-version` switch. Do I need to use it?
There are some other switches not documented in building.html...

Also how do you build the docs from source?
I have launched the index.html file, but there isn't a reference.html
file...
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Michel R. Gernaat | 29 Jan 15:29 2016

Torrent protocol thought

Dear everyone,

I am in no way currently affiliated with the torrent protocol and its
development, so I hope I am not wasting everyone's time here with an idle
thought or one that's been proposed before:

I was wondering whether it would benefit this peer-to-peer protocol to
include (in lieu with DHT and its ilk) an option where clients automatically
receive and cache random pieces of torrents in their networks, which they
then actively seed as well (but in a blind fashion). A local cache of pieces
could be configured and seeded via the DHT.

I imagine it would increase the overall speed of the network at the cost of
a slight overhead (that could be disabled per client). As well as increase
the long term longevity of shared information.

As a side-effect it could also provide plausible deniability for areas where
censorship is commonplace.

Kind regards,

~

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
(Continue reading)

Jacek Wielemborek | 27 Jan 22:22 2016
Picon
Gravatar

Libtorrent afl-fuzzing?

List,

(please CC me, I'm not subscribed)

I'd like to ask you whether libtorrent was already tested with afl-fuzz
[1]. If not, would you be interested in cooperating with me to achieve
this goal? I know afl-fuzz very well, but I have no knowledge of libtorrent.

Cheers,
d33tah

[1]: http://lcamtuf.coredump.cx/afl/

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
MegaHostZone Santu Roy | 24 Jan 06:52 2016
Picon

Libtorrent Project to seed thousands of torrent in local network

Hello

I am looking for someone to build a system to manage more than 50000 of
torrent. those torrent will be seed inside the ISP network but will not be
accessible from outside of our ISP network. its mean a IP filter to white
list the IPs of our ISP network has to be implement. simply we have to
limit the peer of our local network IP only. peer from outside of our
network will be rejected or even don't try to connect. Other protocol like
tracker and dht can connect normally.  A list of trackers which can be
allowed to announce all the torrents same time. need a dedicated web base
control panel to manage torrents and to see statistic. We have a database
in mysql we need the system to start download whenever we add a torrent
infohash in the database.  we also need to insert the percentage of a
torrent downloaded in the database.

Anyone interest to work in this project please mail me or skype me

Email id : san2roy (at) gmail.com
Skype id : san2roy

--

-- 

*Regards*Santu Roy
Contact No : +919474577999 / +919153233966
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
(Continue reading)

Łukasz Taczuk | 23 Jan 22:52 2016
Picon

Finding the cause of torrents to be in the error state in Python

Hello,

I'm creating a bittorrent application and am using Python bindings to do so.
I'm expanding upon the python example in bindings/python/simple_client.py.

In the main loop, I'm checking the values of:
- torrent_handle.status().is_seed()
- torrent_handle.status().error

The reason I'm using .error instead of checking alerts and then verifying
that the alert category is an "error_notification" is because I've read
that things like tracker warnings are also marked as error_notification
here: http://www.libtorrent.org/reference-Alerts.html#alert (enum
category_t table).
Based on the above, my understanding is that not every alert of
error_notification type will make the torrent go into the error state. Is
that correct?

Another matter is that .error is a localized string so I can only use it in
my program to figure out that *some* error has occurred and my torrent has
stopped, not what actually happened.
Is there a simple way to figure out the reason (error code) of the torrent
ending up in the error state once that error has occurred, in Python?

--

-- 
Lukasz Taczuk
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
(Continue reading)

Arvid Norberg | 18 Jan 01:11 2016
Picon

cutting libtorrent 1.1 from master

I'm getting ready to cut a 1.1 release from libtorrent master. I've spent
the last few months primarily on bug fixing and improving the test suite. I
believe it's in a good state right now.

If anyone know of any serious outstanding bugs, please let me know.
Especially if the fix would require to alter the ABI.

thanks

--

-- 
Arvid Norberg
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Arvid Norberg | 18 Jan 00:44 2016
Picon

libtorrent 1.0.8 released

Get it here:
https://github.com/arvidn/libtorrent/releases/tag/libtorrent-1_0_8

Changes since last release:

* fix web seed request size
* fix bug where web seeds were not used for torrents added by URL
* fix support for symlinks on windows
* fix long filename issue (on unixes)
* fixed performance bug in DHT torrent eviction
* fixed win64 build (GetFileAttributesEx)
* fixed bug when deleting files for magnet links before they had metadata

--

-- 
Arvid Norberg
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Serhii Pavlenko | 14 Jan 10:10 2016
Picon

Delay with download progress in libtorrent 1.07

Hi!
After migration from libtorrent v.:0.16.19 to v.:1.0.7 (or any 1.0.X), 
there is a delay about 10 seconds until torrent_status.progress will be 
non-zero, in case of any download rate limit (furthermore  
rate_limit_ip_overhead=disabled).
Without session download rate limit - time delay is less than one second 
(even with limitations with Netlimiter). v.0.16.19 in any case has a small 
delay ~1 sec.
Are there some reasons for such behaviour in newest versions?
Thank you in advance.

Ragrds, Serhii

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Darrell Enns | 8 Jan 00:19 2016
Picon

utp performance and high bandwidth-delay product

I'm doing some testing for a libtorrent application that will use a small number of peers (often just 1 seed
and 1 downloaded) and high bandwidth delay product links (in the hundreds of Mb/s and 100ms+ round trip).
I'm unable to get more than 20Mbps with a single peer on a 140ms RTT link (simulated delay with no packet
loss). If I take the network simulator delay down to 0, I can get almost a full 1000Mbps on the same system. 
I've tried playing with everything that sounded relevant in session_settings, but nothing seems to make
any improvement at all.

Is this the best that can be expected out of uTP on a high latency link? Or is there some combination of
parameters that would improve the single peer throughput? Alternatively, is there a way to get
libtorrent to make multiple connections between the same 2 peers?
------------------------------------------------------------------------------
Michelle Cabrero | 4 Jan 04:32 2016
Picon

unable to use libtorrent-master with deluge, which crashes with boost::shared_ptr error


   I am interested in the async disk I/O aspects of libtorrent-master, and
   tried to use it (instead of 1.0.7) with Deluge 1.3.12. However, I'm stuck.

   I configured with:

   ./configure --enable-python-binding --enable-debug=yes --with-libiconv

   then built with make, which didn't give any terrible errors, just spit out a
   variety of warnings, and installed.

   I'm on Ubuntu 14.04, and Deluge doesn't even start, instead bombing out
   with:

   /usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/_libtorr
   ent.py:59:      RuntimeWarning:      to-Python      converter      for
   boost::shared_ptr<libtorrent::alert> already registered; second conversion
   method ignored.
     import libtorrent as lt
   [ERROR    ] 04:29:12 component:118 [Failure instance: Traceback: <type
   'exceptions.TypeError'>: No to_python (by-value) converter found for C++
   type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >

   A similar error when I tried:

   $ python -c "import libtorrent; print libtorrent.version"
   -c:1:        RuntimeWarning:       to-Python       converter       for
   boost::shared_ptr<libtorrent::alert> already registered; second conversion
   method ignored.
   1.1.0.0
(Continue reading)


Gmane