qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.99k stars 3.89k forks source link

After internet connectivity is broken, qbt binded network interface stopped, qbt fails to resume connectivity #21288

Open slrslr opened 1 week ago

slrslr commented 1 week ago

qBittorrent & operating system versions

4.6.5 AppImage Qt: 6.6.3 Libtorrent: 2.0.11.0 Boost: 1.85.0 OpenSSL: 1.1.1w zlib: 1.2.11 OS: Debian 11 (oldstable) with KDE

What is the problem?

Qbt is unable to resume connectivity after its defined network interface where it is listening, is shutdown and then back up.

Steps to reproduce

No response

Additional context

Computer is connected to a Wireguard VPN server. Qbt is set (in Advanced configuration) to listen on Wireguard network interface wg0 and use all addresses).

Wireguard server starts refusing connection of a client. Client stops wireguard service so the wg0 interface cease to exist is no longer accessible by the qbt for around 15 minutes.

Wireguard VPN server starts accepting connections. Client restarts wireguard service: wg-quick down wg0;wg-quick up wg0;

I find qbt listing less than 10 DHT nodes in its status bar and zero connection speeds.

After I go to qbt settings, Advanced tab, switch interface from wg0 to other. Click OK. Switch back to wg0, click OK. Connectivity starts going.

Can you please check how qbt is handling interface "disappearing" for longer time and automatic retries?

Log(s) & preferences file(s)

No response

luzpaz commented 1 week ago

@slrslr can you please confirm on 4.6.6 ?

stalkerok commented 1 week ago

Confirmed, there is an issue. 2024-09-03_161639 After the screenshot, I disconnected WireGuard. 2024-09-03_164323 After reconnected WireGuard, the client could not find the external address.

Second test. I reconnected after 2 minutes, the client sees the external address, I disconnect, wait for more, after 30 minutes it does not see. 2024-09-03_172228