Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make smart ban optional #22076

Open
HanabishiRecca opened this issue Dec 28, 2024 · 6 comments
Open

Make smart ban optional #22076

HanabishiRecca opened this issue Dec 28, 2024 · 6 comments

Comments

@HanabishiRecca
Copy link
Contributor

Suggestion

Currently, qBittorrent enables libtorrent's smart ban plugin unconditionally. It automatically bans peers sending corrupted pieces.

m_nativeSession->add_extension(&lt::create_smart_ban_plugin);

So maybe it is a good idea to make it optional. A simple checkbox in advanced settings would suffice, I think.

Use case

Some users claim that there are use cases when it is undesirable behavior.
Like downloading a rare torrent with only 1 seed with unstable connection. Any traffic overhead in such situation is justified.

Extra info/examples/attachments

No response

@HanabishiRecca
Copy link
Contributor Author

Hmm, turns out the smart ban plugin is not the only mechanism for banning peers.
Libtorrent also has internal torrent::penalize_peers method which does basically the same thing anyway.
I don't know why there are two different mechanisms for that, but it makes this request kinda irrelevant.

@mirh
Copy link

mirh commented Jan 2, 2025

#15193 being a clear example of why this wouldn't hurt

@stalkerok
Copy link
Contributor

@mirh It has nothing to do with that. Besides, the issue with archive.org torrents is solely an issue with archive.org itself, and has nothing to do with qBittorrent.

@mirh
Copy link

mirh commented Jan 2, 2025

I mean, my log showed:

02/01/2025 19:12 - URL seed DNS lookup failed. Torrent: "archiveteam_archivebot_go_falconk_forum_bioware_com_20160730". URL: "http://ia600500.us.archive.org". Error: "archiveteam_archivebot_go_falconk_forum_bioware_com_20160730 url seed (http://ia600500.us.archive.org) failed: peer banned"

@HanabishiRecca
Copy link
Contributor Author

Yeah, that looks to be it. Although, as I already said above

turns out the smart ban plugin is not the only mechanism for banning peers

So automatic bans can't be disabled completely on qBittorrent side.

@HanabishiRecca
Copy link
Contributor Author

URL seed DNS lookup failed.

Btw, this message is wrong actually. Your error has absolutely nothing to do with DNS.

LogMsg(tr("URL seed DNS lookup failed. Torrent: \"%1\". URL: \"%2\". Error: \"%3\"")
.arg(torrent->name(), QString::fromUtf8(alert->server_url()), QString::fromStdString(alert->message()))
, Log::WARNING);

It assumes that all possible web seed errors could be from DNS lookup only. Which is simply not true as we can see.

The message probably should be replaced by something neutral, like URL seed connection failed. @glassez

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants