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

CCurlFile timeout too short for some iptv servers #25209

Open
1 of 7 tasks
ganzgustav22 opened this issue May 13, 2024 · 4 comments
Open
1 of 7 tasks

CCurlFile timeout too short for some iptv servers #25209

ganzgustav22 opened this issue May 13, 2024 · 4 comments
Labels
Ignored rules issue that does not follow the rules (no template, missing debug log, ...) Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@ganzgustav22
Copy link

Bug report

Describe the bug

There are timeouts occuring when trying to download the m3u file for the IPTV simple plugin.

Expected Behavior

M3U files on slower servers should sucessfully download, it works fine with wget on the same host as well as with two different IPTV apps on android (on the same network).

I have verified it's not some network or wifi issue, Layer-7 shenanigans at the ISP etc.

Actual Behavior

There are timeouts occuring when trying to download the m3u file for the IPTV simple plugin:

error <general>: CCurlFile::CReadState::FillBuffer - (0x7f040f32e0) Failed: Timeout was reached(28)
2024-05-07 16:58:19.966 T:937     error <general>: CCurlFile::Open - <http://iptv.host/get.php?username=XXXXX&password=XXXXX&type=m3u_plus&output=ts> Failed with code 0:

Possible Fix

I suspect this is because the timeout used for CCURLFile within Kodi is 10 seconds. If the server takes longer to respond (which it often does, as that m3u file seems to be generated via some php code), it will timeout.

Fix would be to make that timeout longer or have it configurable. Maybe it is already configurable somewhere?

Your Environment

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: LibreElec 12.0.0.

  • Kodi version: 21

@xbmc-gh-bot xbmc-gh-bot bot added Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it Ignored rules issue that does not follow the rules (no template, missing debug log, ...) labels May 13, 2024
@xbmc-gh-bot
Copy link

xbmc-gh-bot bot commented May 13, 2024

Thank you for using Kodi and our issue tracker. This is your friendly Kodi GitHub bot 😉

It seems that you have not followed the template we provide and require for all bug reports (or have opened a roadmap item by accident). Please understand that following the template is mandatory and required for the team to be able handle the volume of open issues efficiently.

Please edit your issue message to follow our template and make sure to fill in all fields appropriately. The issue will be closed after one week has passed without satisfactory follow-up from your side.

This is an automatically generated message. If you believe it was sent in error, please say so and a team member will remove the "Ignored rules" label.

@fritsch
Copy link
Member

fritsch commented May 13, 2024

Does this help: https://kodi.wiki/view/Advancedsettings.xml#network ?

@ganzgustav22
Copy link
Author

ganzgustav22 commented May 13, 2024

Timeout erros don't seem to occur anymore now (have increased timeout to 30 seconds) but something is still not right.

I will see if I can capture the traffic with tcpdump or something to see what is going on.

2024-05-13 21:50:34.182 T:1034     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList Playlist Loaded - 27922 (ms)

2024-05-13 21:50:34.183 T:1034    error <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Unable to load channels or media from file 'http://iptv.host/get.php?username=XXXXXX&password=XXXXXX&type=m3u_plus&output=ts'

2024-05-13 21:50:34.183 T:1034     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 0 channels.

2024-05-13 21:50:34.183 T:1034     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 0 channel groups.

2024-05-13 21:50:34.183 T:1034     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 0 providers.

2024-05-13 21:50:34.183 T:1034     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 0 media items.

@phunkyfish
Copy link
Contributor

Please try this PR for iptvsimple first: kodi-pvr/pvr.iptvsimple#864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ignored rules issue that does not follow the rules (no template, missing debug log, ...) Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

3 participants