cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1426 curl v7.38.0 does not work with xbmc - cannot scrape or download

From: John E <geearf_at_users.sf.net>
Date: Sun, 21 Sep 2014 00:35:46 +0000

Hello,

I Like graysky I am an Arch Linux & XBMC user with the same issue.
Like him as well, I do not know what XBMC tries to do with libcurl... but I have bisected curl to find the 'bad' commit.

This is what I found:

cacdc27f52ba7b0bf08aa57886bfbd18bc82ebfb is the first bad commit
commit cacdc27f52ba7b0bf08aa57886bfbd18bc82ebfb
Author: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon Aug 25 11:34:14 2014 +0200

    low-speed-limit: avoid timeout flood
    
    Introducing Curl_expire_latest(). To be used when we the code flow only
    wants to get called at a later time that is "no later than X" so that
    something can be checked (and another timeout be added).
    
    The low-speed logic for example could easily be made to set very many
    expire timeouts if it would be called faster or sooner than what it had
    set its own timer and this goes for a few other timers too that aren't
    explictiy checked for timer expiration in the code.
    
    If there's no condition the code that says if(time-passed >= TIME), then
    Curl_expire_latest() is preferred to Curl_expire().
    
    If there exists such a condition, it is on the other hand important that
    Curl_expire() is used and not the other.
    
    Bug: http://curl.haxx.se/mail/lib-2014-06/0235.html
    Reported-by: Florian Weimer

Now just looking at the name of "Curl_expire_latest()" and the fact that XBMC logs complain about expiring, I would assume this is the correct place to look at.
(Now I don't know what is 'wrong' here, XBMC or curl...)

Please ask if you need more information.
John

---
** [bugs:#1426]  curl v7.38.0 does not work with xbmc - cannot scrape or download**
**Status:** open
**Created:** Sat Sep 20, 2014 12:01 PM UTC by graysky
**Last Updated:** Sat Sep 20, 2014 09:44 PM UTC
**Owner:** Daniel Stenberg
Xbmc v13.2 does not work properly with curl v7.38.0. I cannot scrape anything now nor download anything through xbmc. The log indicates timing out to curl. I rebuilt xbmc against this new version of curl, but still, no downloads are possible.  Downgrading to v7.37.1 of curl solves the problem, so it seems to be related to this new release.
I have verified that I can download files form the shell with the current version of curl.  The xbmc dev group closed my ticket against xbmc with the comment, "report to curl."
Here are the lines from xbmc's log file showing the timeout:
ERROR:CCurlFile::FillBuffer-Failed:Timeoutwasreached(28)
ERROR:CCurlFile::CReadState::Connect,didn'tgetanydatafromstream.
ERROR:Open-failedtoopensource<http://mirrors.xbmc.org/addons/gotham/addons.xml.md5>
ERROR:CCurlFile::FillBuffer-Failed:Timeoutwasreached(28)
ERROR:CCurlFile::CReadState::Connect,didn'tgetanydatafromstream.
ERROR:Open-failedtoopensource<http://mirrors.xbmc.org/addons/frodo/addons.xml.md5>
ERROR:CCurlFile::FillBuffer-Failed:Timeoutwasreached(28)
ERROR:CCurlFile::CReadState::Connect,didn'tgetanydatafromstream.
ERROR:Open-failedtoopensource<http://mirrors.xbmc.org/addons/gotham/addons.xml|Encoding=gzip>
ERROR:CCurlFile::FillBuffer-Failed:Timeoutwasreached(28)
ERROR:CCurlFile::CReadState::Connect,didn'tgetanydatafromstream.
ERROR:Open-failedtoopensource<http://mirrors.xbmc.org/addons/frodo/addons.xml|Encoding=gzip>
ERROR:RepositoryXBMC.orgAdd-onsreturnednoadd-ons,listingmayhavefailed
OS: Arch Linux x86_64
% curl -V
curl 7.38.0 (x86_64-unknown-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1i zlib/1.2.8 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile GSS-API SPNEGO NTLM NTLM_WB SSL libz TLS-SRP 
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-09-21

These mail archives are generated by hypermail.