-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
[BUG] 'connection reset by peer' when refreshing #198
Comments
I'm able to fetch the metadata refresh URL just fine myself:
Then I'm also able to fetch the latest image from the
So I'm rather none the wiser... |
Thanks for bug report @yrro this could be a new bug in libsoup (if you are running unstable) or as you said some strange network configuration. Do you want to try this very simple JS script to test if it's the extension, libsoup or something else we are hitting. Just save the snip below as test.js, then in a command line just run:
This is what I see:
|
Thanks for that. I have to add:
Then I get:
So maybe this is a problem with Soup 3... |
Looks like it:
So this is not the extension's fault, thanks! |
Oh thanks for confirming, I've been testing in Fedora 37 (I think) but perhaps debian unstable is a bit more bleeding edge. Any idea which version it might be? 3.0, 3.1 and 3.2 all had point releases in September. |
I see this with 3.2.2 and 3.3.1 but not 2.74.3 and I created some test cases: https://github.com/yrro/soup3-debugging Further testing shows that libsoup 3 only fails on my work network. Since 2.4 (and curl, Python's urllib, etc.) work fine it may be something weird that libsoup 3 is doing with GnuTLS, that 2.4 doesn't do. I filed a libsoup issue, will see what they think... |
I've found the cause! Does this work for you? On my Debian testing/unstable system:
On a RHEL 8 system:
So I guess |
Sorry I should have said why I reopened this. I wonder if your system is using libsoup 3 and if so how come you're able to fetch from If libsoup doesn't have any way for you to influence/request TLSv1.2 then I guess there's not much you can do assuming you want to keep using libsoup (which is fine, it's what GNOME Shell gives you to work with after all...) It appears libsoup relies on glib-networking, which is (in Debian) using GnuTLS. GnuTLS allows a "priority string" to influence the choice of TLS version, ciphersuites etc.
I guess libsoup doesn't allow clients to specify this? The weird thing is that |
Ok well while experimenting with various things I decided to upgrade GLib-Networking from 2.66 to 2.74 and now libsoup 3 is able to fetch stuff from I'll have to log out and in again to confirm that the extension is able to fetch wallpaper again but I would be very surprised if that doesn't fix it so I'll close this again on the assumption that it'll work. |
Happy to keep this open, this is quite interesting. I'll have to think about how we deal with this, I think. The existence of the GNOME introspection files for libsoup3 is not guaranteed even if the library is installed as best I can tell, Ubuntu 22.04 might have just stuck with 2.74. Soup does appear to have a message priority flag, but not documented to suggest it's the equivalent to the GnuTLS one. |
Definitely seeing the same thing with latest Ubuntu 22.04.2 LTS:
|
Describe the bug
I just noticed that the extension hasn't downloaded any new wallpaper since September 2022. 'Refresh now' in the UI has no effect.
I turned on debug logging and can see the following message when I 'refresh now':
Unfortunately it doesn't output the URL it was trying to fetch, so it's a bit difficult to debug this further. But I can use Wireshark where I see a TLS session being established with
13.107.22.200:443
which sends a server certificate forwww.bing.com
so that's probably the problematic connection.After the Server Hello message I can see Client Key Exchange, Change Cipher Spec, then two segments of Application Data before I receive an RST, closing the connection. So this could very well be a middleman deciding that downloading wallpaper from Bing is forbidden by our network policies... but it's hard to say because I don't know what URL the extension is trying to fetch.
www.bing.com
works fine in my browser, withcurl
, etc.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: