Bug 18152 - Podcast XML HTTPS download fails: Connect times out
: Podcast XML HTTPS download fails: Connect times out
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Podcasts
: 7.9.x
: PC Other
: -- normal (vote)
: 7.9.x
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-29 14:21 UTC by Igor
Modified: 2017-05-12 14:30 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Proposed patch (1.26 KB, patch)
2017-05-11 18:06 UTC, Martin Williams
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Igor 2017-04-29 14:21:27 UTC
When trying to read a podcast XML with an HTTPS URL, I get the following error on the UI:

Connect timed out:


Here's the relevant part of the server.log:

[17-04-29 15:51:59.6096] Slim::Networking::SimpleAsyncHTTP::_createHTTPRequest (110) GETing https://www.deutschlandfunknova.de/podcast/update
[17-04-29 15:51:59.6142] Slim::Networking::Async::connect (108) Connecting to www.deutschlandfunknova.de:443
[17-04-29 15:51:59.6607] Slim::Networking::SimpleAsyncHTTP::onError (229) Failed to connect to https://www.deutschlandfunknova.de/podcast/update (Connect timed out: )
[17-04-29 15:51:59.6624] Slim::Formats::XML::gotErrorViaHTTP (310) Error: getting https://www.deutschlandfunknova.de/podcast/update


I installed 'libio-socket-ssl-perl' previously after getting this error:

Can't connect to https URL lack of IO::Socket::SSL: https://www.deutschlandfunknova.de/podcast/update
Comment 1 Michael Herger 2017-05-11 16:12:18 UTC
Is this the same: https://github.com/Logitech/slimserver/issues/143 ?
Comment 2 Martin Williams 2017-05-11 18:06:00 UTC
I just found a similar problem. One of my subscriptions started to fail (again) recently, turns out to be due to "obligatory" SNI.

Proof of concept patch attached, drafted a couple of hours ago !

As regards www.deutschlandfunknova.de, I seem to have no problem (with my patch).

This may illuminate the underlying issue:

Fails:
openssl s_client -connect www.deutschlandfunknova.de:443

Succeeds:
openssl s_client -connect www.deutschlandfunknova.de:443 --servername www.deutschlandfunknova.de


See also earlier bug report 18151 which may also be needed.
Comment 3 Martin Williams 2017-05-11 18:06:50 UTC
Created attachment 7759 [details]
Proposed patch

Proof of concept patch.
Comment 4 Michael Herger 2017-05-12 12:10:03 UTC
Commit 1021146a41db9b5ff50072e51a9a178049bba5bf - thanks Martin!

Please not that this change is in 7.9.1 only. 7.8.1 doesn't get any updates any more.
Comment 5 Martin Williams 2017-05-12 14:30:30 UTC
(In reply to comment #4)
> Commit 1021146a41db9b5ff50072e51a9a178049bba5bf - thanks Martin!
> 
> Please not that this change is in 7.9.1 only. 7.8.1 doesn't get any updates
> any more.

Thanks for the warning.

So which do I do first, upgrade to 7.9 or upgrade from Wheezy to Jessie with
the daunting systemd ? No need to answer !