Project

General

Profile

Bug #3959

icons curl error

Added by C vH about 8 years ago. Updated about 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2016-08-29
Due date:
% Done:

0%

Estimated time:
Found in version:
4.1.+
Affected Versions:

Description

If Kodi request the picons/icons from Tvh (master) we see at every platform

ERROR: CCurlFile::Stat - Failed: Timeout was reac or: CCurlFile::Stat - Failed: Timeout was reached(28) for http://127.0.0.1:9981/imagecache/123

Then it tries again and again till it gets the file but only if you use curl >7.42 (works perfectly fine at the same server with curl <7.42).
So I thought could be a curl problem but the curl devs are are confused by the output and it sounds like Tvh is doing something strange. Some curl output could be found here - http://pastebin.com/tu0m1hme

If some logs are needed just ask.

History

#1

Updated by C vH about 8 years ago

https://github.com/curl/curl/issues/987#issuecomment-243338939 and following

if I add -I param (so that curl makes HEAD requests instead of GET ones) then I can see similar dead connections and random timeouts like shown on kodi log. Also I can see connection number increasing, as it reopens new connections when existing ones die...

Every HEAD response with a response body MUST be forced-closed at some "random" point since the client can't know when it ends it should probably get closed immediately once a response body has been detected (and that's not even reliable) and cannot be reused so it'll be a performance penalty even for the cases this approach works.

#2

Updated by Jaroslav Kysela about 8 years ago

Fixed in v4.1-2214-g04e1190 .

#3

Updated by Jaroslav Kysela about 8 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF