mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Http sources not in use to speed up? #13206
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#13206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abcfy2 on GitHub (Mar 21, 2022).
qBittorrent & operating system versions
qBittorrent: 4.4.1 x64
Operating system: Manjaro KDE amd64
Qt: 6.2.3
libtorrent-rasterbar: 2.0.5
What is the problem?
Some torrents contain http sources, but seems not in use.
But other bittorrent clients like aria2 does not have this problem.
Steps to reproduce
Here is a sample torrent: https://download.manjaro.org/kde/21.2.5/manjaro-kde-21.2.5-minimal-220314-linux515.iso.torrent
Additional context
No response
Log(s) & preferences file(s)
No response
@thalieht commented on GitHub (Mar 21, 2022):
First peer i connected to with that torrent was of Connection type "Web". qBt doesn't differentiate between
web_seedandhttp_seedhttps://www.libtorrent.org/reference-Core.html#peer_info dunno how to link directly, search forweb_seedgithub.com/qbittorrent/qBittorrent@baa8d2c326/src/base/bittorrent/peerinfo.cpp (L214-L222)@AbeniMatteo commented on GitHub (Mar 22, 2022):
Works fine for me.

@thalieht: there is no distinction between
http_seedandweb_seedbut, in this case, "Web" is the correct connection type.The peer is
web_seed(connection type) sharing the file throughHTTP.@abcfy2 commented on GitHub (Mar 22, 2022):
Why this is not working in my environment ?
I can't see the connection
Web.@abcfy2 commented on GitHub (Mar 22, 2022):
Seems it's only a build issue ?
I try to install package in Archlinux
sudo pacman -S qbittorrent, and it's working.But when I run from AppImage, it's not working.
I don't know why.
@AbeniMatteo commented on GitHub (Mar 22, 2022):
I'm starting up a VM with Manjaro, how did you install qBittorrent?
@abcfy2 commented on GitHub (Mar 22, 2022):
Install from pacman, it's working:
sudo pacman -S qbittorrent, and runqbittorrent.Running from AppImage (download from https://www.fosshub.com/qBittorrent.html), it's not working.
Thanks.
@abcfy2 commented on GitHub (Mar 22, 2022):
Maybe Appimage lost some optional dependencies when building ?
@AbeniMatteo commented on GitHub (Mar 22, 2022):
The problem presents itself with
Manjaro+AppImage,Ubuntu 20.04LTS+AppImageworks fine.Repro:
Manjaro 21.2.5chmod +x qbittorrent-4.4.1_x86_64.AppImage./qbittorrent-4.4.1_x86_64.AppImage@abcfy2 commented on GitHub (Mar 22, 2022):
Yeah, confirmed. Ubuntu + AppImage works very well.
And I found Fedora + AppImage has the same issue. So I think this might be build dependencies issue.
@abcfy2 commented on GitHub (Mar 22, 2022):
Oh, I found it. just uncheck
validate HTTPS tracker certificatesin Advanced config will solved this issue.@AbeniMatteo commented on GitHub (Mar 22, 2022):
Yes, WireShark reports
TLSv1.3 Record Layer: Alert (Level: Fatal, Description: Unknown CA).Disabling the cert validation is a workaround, not the fix.
@abcfy2 commented on GitHub (Mar 22, 2022):
But I'm curious why Ubuntu is not affected. Both Manjaro and Fedora have this problem.
@AbeniMatteo commented on GitHub (Mar 22, 2022):
I'm onto something, can you run
openssl versionANDopenssl version -don Fedora and Arch and paste the results?1.1.1f 31 Mar 2020OPENSSLDIR: "/usr/lib/ssl"1.1.1m 14 Dec 2021OPENSSLDIR: "/etc/ssl"@abcfy2 commented on GitHub (Mar 22, 2022):
I have no ArchLinux. I just run this command in docker.
Arch:
openssl version:
OpenSSL 1.1.1n 15 Mar 2022openssl version -d:
OPENSSLDIR: "/etc/ssl"Fedora:
openssl version:
OpenSSL 1.1.1l FIPS 24 Aug 2021openssl version -d:
OPENSSLDIR: "/etc/pki/tls"@AbeniMatteo commented on GitHub (Mar 22, 2022):
OpenSSL can't always find root CAs when mounted by AppImage so it can't download from httpS sources.
Running
strace -o log.txt ./qbittorrent-4.4.1_x86_64.AppImagehelps you see which file\directory it is scanning on each distro.The problem is also tracked here.
@abcfy2 commented on GitHub (Mar 22, 2022):
Yes. Confirmed force set
SSL_CERT_FILE=/etc/ssl/cert.pemwill solve this issue:But I think this could be done in AppImage.
@abcfy2 commented on GitHub (Mar 22, 2022):
I create a PR to qbittorrent-enhanced-edition AppImage, maybe this can give some reference.
@ghost commented on GitHub (Mar 26, 2022):
@sledgehammer999 you might wanna take a look into this if you get time.
@luzpaz commented on GitHub (Aug 17, 2024):
@abcfy2 is this ticket still relevant ?