Skip to content

Commit

Permalink
Merge pull request #6914 from notspiff/connection_timeout
Browse files Browse the repository at this point in the history
added: allow setting connection timeout for curl urls
  • Loading branch information
MartijnKaijser committed May 8, 2015
2 parents 0a68857 + 7912ab7 commit 25a3d5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/filesystem/CurlFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,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 25a3d5f

Please sign in to comment.