lgallard / qBittorrent-Controller

qBittorrent Controller - An Android app for controlling qBittorrent servers
MIT License
286 stars 58 forks source link

After issueing command it takes 30+ seconds to get a result #249

Open gcarreno opened 3 years ago

gcarreno commented 3 years ago

Hi @lgallard ,

I'm a long time user of the Pro version and I really like the full range and specific qBitTorrent features, many thanks for this piece of very good software!!

For the past month or so I've been plagued from a 30+seconds delay from pressing a command and getting a result.

Connecting and the usual refresh is OK, no issues there, but as soon as I ask do delete an entry it has the delay.

I'm connecting from a Nexus 7 tablet and it's on a local network. The only thing between the Nexus and the Server is a WiFi AP and the switch that connects all my home network. So that's Nexus->WiFi AP->Wired to Switch->Wired to Server.

The server is a qBitTorrent v4.2.5 running under Ubuntu 20.04 64b.

I've checked with Transdrone aka Transdroid and the commands are going without delay there.

I'm sorry I can't give any more detailed account of what's happening. I realize it's not much in terms of info to go on. I'm also a programmer and I would kinda go: This dude needs to give me more :smiley: ! Please ask me anything in terms of setup or tests I can do either from the tablet or from the server. Like I said, Ubuntu on the server side and I have JuiceSSH on the tablet in case you want me to do some probing on the tablet side.

Cheers, Gus

lgallard commented 3 years ago

@gcarreno it's a little odd, there haven't been changes in the past month and the last change added was an action (force resume command) , which is not related to the app's performance .

But I will check it. Thanks for reporting it!

gcarreno commented 3 years ago

Hey @lgallard

Many thanks for the reply.

The Nexus(ASUS) platform is quite old(Android 6.0.1, Kernel 3.4.0-gad29d11) and I'm feeling it beginning to have some stuttering in some newer apps, but nothing above 1 or 2 seconds, sometimes even less than a second, more like a flicker.

When it takes more than 10 seconds for, what I think is just, a network round trip I get a bit suspicious of my network setup. Some of my hardware is old and I've had issues with overheating of the AP. That why I tested it with the other app and it was instantaneous.

I really want to give you more info about what's happening but I'm afraid I can't give you any more without looking at the your source and kinda give you hints at what could be the area. Not gonna do that cuz I'm crap at Java and even more crap at App building since I've never done it.

My only experience is with the JSON API for which I've been playing with in Free Pascal: https://github.com/gcarreno/laz-qBitTorrent-WebUI

I'm really sorry for being so ranty and also for not being able to give you more stuff to help you diagnose the issue!!

Cheers, Gus