Bug 373048

Summary: Clicking links lag when server is slow or not existing
Product: [Frameworks and Libraries] frameworks-kio Reporter: Guo Yunhe <i>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 5.28.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Guo Yunhe 2016-11-28 19:41:42 UTC
The test URL https://www2.guoyunhe.me/ points to a server that doesn't exist.

1. Open LibreOffice or other software that you can insert a link.
2. Type URL https://www2.guoyunhe.me/
3. Ctrl + click the link.
4. Wait the link to be opened.

Expected result:

Open the link immediately in web browser.

Actual result:

There will be a notification with progress bar. And wait about 3 seconds, it time out and open an error dialog: server not found. But it doesn't open the URL in web browser at all.

If the server exist but very slow, users will wait a while before open link in web browser.

My worry is that even KIO cannot access the server, maybe the web browser can (with HTTP/Socks5 proxy). KIO does not need to check if the server can be connected, because the web browser will do this. This step will create a uncertain lag before opening links.
Comment 1 Guo Yunhe 2016-11-28 19:48:10 UTC
Correct URLs and results:

https://www2.guoyunhe.me/  --> Untrusted SSL certificate

https://www2.guoyunhe.cc/  --> Server not found (not exist)

https://thepiratebay.org/  --> Server not found (blocked in my network, but I can open it in my web browser with tor support)
Comment 2 Nate Graham 2018-08-22 20:39:22 UTC
Works for me in KDE Frameworks 5.49. The links instantly open in a browser.