Skip to content

Commit

Permalink
added: allow setting connection timeout for curl urls through a proto…
Browse files Browse the repository at this point in the history
…col option

useful for addons grabbing stuff from sites which are slow to respond
  • Loading branch information
notspiff committed Mar 16, 2015
1 parent 2f2010c commit d943e51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/filesystem/CurlFile.cpp
Expand Up @@ -781,6 +781,8 @@ void CCurlFile::ParseAndCorrectUrl(CURL &url2)
SetStreamProxy(value, PROXY_HTTP);
else if (name == "sslcipherlist")
m_cipherlist = value;
else if (name == "connection-timeout")
m_connecttimeout = strtol(value.c_str(), NULL, 10);
else
SetRequestHeader(it->first, value);
}
Expand Down

0 comments on commit d943e51

Please sign in to comment.