Bedeho Mender | 1 Sep 08:14 2015
Picon

Information about file in torrent

Before one could get information on the i'th file in a torrent by using
torrent_info::file_at(i), and then consult the returned file_entry, however
this has been deprecated, what is the recommended way of doing this now?

Bedeho
------------------------------------------------------------------------------
Bedeho Mender | 1 Sep 05:40 2015
Picon

Deleting alerts

With the new alerts API, should one not delete alerts after processing
them, given that it is stated in alerts.hpp that they live until the next
call to session::pop_alerts? I am seeing a segfault after manually deleting
each alert after processing.

Bedeho
------------------------------------------------------------------------------
Bedeho Mender | 30 Aug 23:01 2015
Picon

Recommended disconnection operation

When closing a peer connection, you now have to provide the operation which
caused the disconnect, as seen in the new signature

peer_connection::disconnect(error_code const& ec , operation_t op, int
error = 0);

which enum in operation_t do you recommend plugins use, and does it matter?
------------------------------------------------------------------------------
Bedeho Mender | 30 Aug 22:25 2015
Picon

peer.hpp build error?

It seems peer.hpp does not build due to the following new structs

struct ipv4_peer_entry
{
address_v4::bytes_type ip;
boost::uint16_t port;
};

#if TORRENT_USE_IPV6
struct ipv6_peer_entry
{
address_v6::bytes_type ip;
boost::uint16_t port;
};
#endif

where the address types are missing namespace boost::ip as part of type.
------------------------------------------------------------------------------
Bedeho Mender | 30 Aug 21:51 2015
Picon

Posting costum torrent level alert

It seems like the alert_manager in the torrent class no longer has
post_alert() for plugins to send alerts. The only similar routine I find is
emplace_alert(), which is some complicated variadic template routine, but
it does not accept my subclass of the alert class, I get compile error "no
matching function for call to".

How should one now post costum alerts from plugins?

Bedeho
------------------------------------------------------------------------------
Bedeho Mender | 30 Aug 06:55 2015
Picon

Using libtorrent with another networking lib

I am using libtorrent together with another networking library (which also
uses boost::asio for its networking) is there any reason this could
potentially not work? In particular in the following snippet

#include <libtorrent/session.hpp>

int main() {

{
    libtorrent::session s;
}

std::cerr << "we got here";

/** Code using other lib here **/
}

It is unable to get to the print out "we got here". However, if you remove
the scope around the session, then it all goes fine. This suggests the
destructor on libtorrent::sessino has a hard time completing, and indeed
when one looks at it, it seems like it does have the potential for hanging:

~session()
{
aux::dump_call_profile();

TORRENT_ASSERT(m_impl);
TORRENT_ASYNC_CALL(abort);

if (m_thread && m_thread.unique())
(Continue reading)

MooPolice | 27 Aug 09:29 2015
Picon

crash in trunk piece_picker

Recently I encountered crashes/iterator asserts (on 32bit build, trunk) in 
piece_picker::inc_refcount()
...
++m_piece_map[index].peer_count;
...

after metadata was received. The function assumes the the bitmask and the m_piece_map
have the same size. But in some cases the bitmask size is greater and so it crashes/asserts.
Dunno what is more likely a libtorrent bug or a some other clients bug/attack.

I have not seens this problem in 64bit builds (yet).

MassaRoddel
------------------------------------------------------------------------------
Ricky Huang | 26 Aug 19:19 2015
Picon

Over-connecting via UDP?

Hello all,

I got a complain from an admin claiming that my server is hitting it too frequently… below is the log:

> Category: abuse
> Report-Type: login-attack
> Service: firewall
> User-Agent: csf v8.04
> Date: 2015-08-23T21:37:24-0430
> Source: MY_IP
> Source-Type: ipv4
> Attachment: text/plain
> Schema-URL: https://download.configserver.com/abuse_login-attack_0.2.json
> content-type = text/plain; charset=utf8; name="logfile.log";; size = 1400
> 
> Aug 23 21:37:13 crdn002 kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT=
MAC=00:24:e8:40:c8:9b:00:0e:d6:19:b8:00:08:00 SRC=MY_IP DST=THEIR_IP LEN=48 TOS=0x00 PREC=0x00
TTL=56 ID=5939 PROTO=UDP SPT=21195 DPT=49393 LEN=28
> Aug 23 21:37:13 crdn002 kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT=
MAC=00:24:e8:40:c8:9b:00:0e:d6:19:b8:00:08:00 SRC=MY_IP DST=THEIR_IP LEN=48 TOS=0x00 PREC=0x00
TTL=56 ID=7178 PROTO=UDP SPT=21195 DPT=49393 LEN=28
> Aug 23 21:37:13 crdn002 kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT=
MAC=00:24:e8:40:c8:9b:00:0e:d6:19:b8:00:08:00 SRC=MY_IP DST=THEIR_IP LEN=116 TOS=0x00
PREC=0x00 TTL=56 ID=7197 PROTO=UDP SPT=21195 DPT=49393 LEN=96
> Aug 23 21:37:14 crdn002 kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT=
MAC=00:24:e8:40:c8:9b:00:0e:d6:19:b8:00:08:00 SRC=MY_IP DST=THEIR_IP LEN=116 TOS=0x00
PREC=0x00 TTL=56 ID=57945 PROTO=UDP SPT=21195 DPT=49393 LEN=96
> Aug 23 21:37:16 crdn002 kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT=
MAC=00:24:e8:40:c8:9b:00:0e:d6:19:b8:00:08:00 SRC=MY_IP DST=THEIR_IP LEN=116 TOS=0x00
PREC=0x00 TTL=56 ID=21265 PROTO=UDP SPT=21195 DPT=49393 LEN=96
(Continue reading)

arvid | 24 Aug 00:32 2015
Picon
Picon

Re: Error: Sorry, minimum announce interval = 20

(+ mailing list)

On 2015-08-23 15:30, arvid wrote:
> On 2015-08-22 07:50, C Dizzle wrote:
>> Any ideas?
> 
> Check the log to see if deluge ended up announcing to this tracker
> within 20 seconds for any torrent. If you complete a download in less
> than 20 seconds for instance, perhaps the tracker has a bug where it
> considers the "completed" announce to be subject to the minimum
> announce interval.
> 
> It also appears that deluge doesn't handle torrents in an error state
> very well. Deluge need to call clear_error() in order to resume a
> torrent in an error state (which explains why you have to remove and
> re-add the torrent instead of just starting it again). Perhaps it's a
> bit harsh to put the torrent in an error state because the tracker
> says there's an error, but it doesn't seem completely unreasonable.
> 
> You may also ask the tracker operator exactly what that error message
> means (and by "exactly" I mean all the details in when it gets
> triggered, for instance, does it apply to event=completed announces?
> it probably shouldn't).
> 
> If it turns out you are completing torrents in less than 20 seconds,
> and everyone agrees that the tracker's behavior is reasonable (which
> doesn't sound reasonable to me), libtorrent could be made to honor the
> minimum announce interval even for event=completed announces. Assuming
> this is the problem that is.
> 
(Continue reading)

C Dizzle | 20 Aug 18:35 2015
Picon

Error: Sorry, minimum announce interval = 20

Hello,

Using Deluge 1.3.11 with libtorrent 1.05 I believe.  I am getting this
error on only one tracker I use, and no one there seems to know what is
happening, or anyone on the Deluge team.. When something downloads, it
downloads just fine, but then pauses when switching to seeding with the
error "Error: Sorry, minimum announce interval = 20 sec." No amount of
refreshing works. I can recheck the pieces, then the tracker returns an
'OK' response, but I still can't unpause the torrent.  I have to manually
remove the torrent and then add it, let it check the pieces, then it will
work. I got ltconfig plugin working, but I dont see any settings which look
like they would change anything that would affect this. Again, this only
happens on one tracker and I'm pulling my hair out.  How do I change the
minimum announce interval?

Thank you!
------------------------------------------------------------------------------
Ruslan Fedoseenko | 12 Aug 10:39 2015
Picon

some interesting dictionaries in info section of torrent file created with uTorrent > 3.0

Hi. I found some interesting dictionaries in torrent files created with
uTorrent > 3.0
They are "file-duration", "file-media" and "profiles".
Do this discribed with some BEP?

Also I didn't understend the perpouse of "file-media" section. If there is
no BEP could you please clarify the meaning of this section?

Fedoseyenko Ruslan
------------------------------------------------------------------------------

Gmane