Skip to content
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

More download attempt are not managed? with CURLOpen error case "FillBuffer - Failed"/"Open failed with code 0" #583

Closed
CastagnaIT opened this issue Jan 3, 2021 · 1 comment

Comments

@CastagnaIT
Copy link
Collaborator

CastagnaIT commented Jan 3, 2021

This is a borderline case which happens a few times when servers are unstable due to too many connections from users
can happen that Curl fail the HTTP request

Line 5188

2021-01-02 21:26:39.950 T:2616    DEBUG : AddOnLog: inputstream.adaptive: Download https://ipv4-c040-mil001-ix.1.oca.nflxvideo.net/?o=AQNI2phcDnT2ANJfO7Th_NEcq69y5_xxBt_ygw1itRgy2xx83hbbCqrcyYzUU3-fBwlCu7UTQo13hfiST3SPxpMEg5ey5yjPba4VfYH6IoHeSCdM6DG8rOJMwmIKCY-5xbvKha_7-Q2OsDk44hIzRgwpw2yqBOUuP_oVU38&v=5&e=1609661985&t=2iZXRUua7pmCGRX9ijz2S8AITQ0 finished, avg speed: 3637019.45byte/s, current speed: 3663700.00byte/s
2021-01-02 21:26:40.078 T:9952    ERROR : CCurlFile::FillBuffer - Failed: Couldn't resolve host name(6)
2021-01-02 21:26:40.078 T:9952    ERROR : CCurlFile::Open failed with code 0 for https://ipv4-c040-mil001-ix.1.oca.nflxvideo.net/?o=AQNI2phcDnT2ANJfObLl-9Mdrqtx5_xxBsjygw1itRgy2xx83hbbCqrcyYzUU3-fBwlCu7UTQo13hfiST3SPxpMEg5ey5yjPba4VfYH6IoHeSCdM6DG8rOJMwmIKCY-5xbvKhav09Q2OsDk44hIzRgwpw2yqBOUuP_oVU38&v=5&e=1609661985&t=6e0vpK0idQCu7bUw0I9AQteZfAY:

LOG: kodi.log

What is happened:

  • The Curl has failed, in my case the audio stream

    CCurlFile::FillBuffer - Failed: Couldn't resolve host name(6)
    CCurlFile::Open failed with code 0 for...
  • ISA does not make any attempt to retry downloading therefore the download of the audio stream is blocked
  • Then Kodi say stream stalled and automatically try seek forward (very ugly...) but ISA is not more able to download the stalled stream and the sound is broken

I suspect that this is also the same cause of the problems when rarely video playback freezes and kodi stop brutal mode the playback

is it possible to manage at least 2 or 3 download attempts when an error occurs before breaking a stream and then the playback?

@glennguy
Copy link
Contributor

fixed in #594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants