FS#23193 - [moc] [curl] Not playing internet radio stations

Attached to Project: Arch Linux
Opened by Krzysztof Grygiencz (kfgz) - Tuesday, 08 March 2011, 21:50 GMT
Last edited by Eric Belanger (Snowman) - Thursday, 19 May 2011, 04:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Angel Velasquez (angvp)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

Moc stopped playing internet radios with latest curl.

Additional info:
moc 2.4.4-3
curl 7.21.4-2
Bug is exactly the same as here http://moc.daper.net/node/242

Steps to reproduce:
mocp -a [url]
mocp -p
This task depends upon

Closed by  Eric Belanger (Snowman)
Thursday, 19 May 2011, 04:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in moc-2.4.4-4.
Comment by Eric Belanger (Snowman) - Tuesday, 08 March 2011, 23:25 GMT
Can you post the url you are trying to play?
Comment by Krzysztof Grygiencz (kfgz) - Tuesday, 08 March 2011, 23:29 GMT Comment by Eric Belanger (Snowman) - Wednesday, 09 March 2011, 01:57 GMT
I confirm that it works fine with curl 7.21.3-1. From the logs (I've attached the appropriate snippets), the call to curl gets terminated. It looks like an upstream issue with curl.
Comment by Andrey Vlasovskikh (vlan) - Thursday, 07 April 2011, 20:08 GMT
moc does not work with any internet radio station I usually listen to. It resolves the domain name via DNS, but does not establish a TCP connection to the server.

moc 2.4.4-3, curl 7.21.4-2.
Comment by Angel Velasquez (angvp) - Monday, 18 April 2011, 02:11 GMT
Ok could you try to reproduce the bug with the new curl version on [testing] curl-7.21.5-1

Thanks!
Comment by Eugene Arshinov (statc) - Sunday, 15 May 2011, 16:36 GMT
This bug affects me

moc 2.4.4-3
curl 7.21.6-1
Comment by František Kačárek (nixie) - Monday, 16 May 2011, 19:24 GMT
Same for me.

Works until upgrading from curl-7.21.3-1 to curl-7.21.4-2.
Tried using curl-git-20110516 from AUR - doesnt help.
Comment by Dave Reisner (falconindy) - Tuesday, 17 May 2011, 23:20 GMT
This is because of building curl with --enable-threaded-resolver, and it isn't specific to a version. We just happened to start building curl with that option for 7.21.4.
Comment by Heiko Baums (cyberpatrol) - Tuesday, 17 May 2011, 23:22 GMT
Then I guess this should be changed again as it is faulty and makes problems with some software.
Comment by Dave Reisner (falconindy) - Tuesday, 17 May 2011, 23:24 GMT
Seems a bit drastic to disable the threaded resolver for one package with a dead upstream... I'm checking with curl upstream to see if they've heard any similar reports.
Comment by Dave Reisner (falconindy) - Wednesday, 18 May 2011, 12:45 GMT
Daniel Stenberg pointed out that moc doesn't set a timeout for select, and expects to get data on the first socket read (and doesn't). Setting a timeout fixes this. He even provided a quick patch (attached), which works as advertised.

http://curl.haxx.se/mail/lib-2011-05/0155.html
Comment by Krzysztof Grygiencz (kfgz) - Wednesday, 18 May 2011, 13:10 GMT
I've tested this patch with moc-svn and it works!
Comment by Heiko Baums (cyberpatrol) - Wednesday, 18 May 2011, 13:37 GMT
Works with the stable 2.4.4, too.
Comment by Heiko Baums (cyberpatrol) - Wednesday, 18 May 2011, 13:40 GMT
Just in case... ;-)
If you rebuild moc, don't forget applying moc.patch from  FS#23879 , too.
Comment by Heiko Baums (cyberpatrol) - Wednesday, 18 May 2011, 13:46 GMT
Here's the new package for/from ABS.

Loading...