Bug #3959
icons curl error
0%
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
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.