summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-03-02 12:03:00 -0600
committerDave Parks <davep@lindenlab.com>2010-03-02 12:03:00 -0600
commite9d926385f4d8933d10bb4a3168628e0a6f0ad2a (patch)
tree4872fadf687440bb1ca2da165c27290f53688737 /indra/newview
parent21586ca40f661ec0c5bcce37dc681b3b37ee5a08 (diff)
Curl tweaks to get rid of various types of timeouts.
- Scrub host names from capability ips (requires disabling SSL host name verification) - Reset connections that have received a timeout (avoids cascading timeouts from reusing a cached bad connection)
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerregion.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp
index 6737b113af..be7fb04206 100644
--- a/indra/newview/llviewerregion.cpp
+++ b/indra/newview/llviewerregion.cpp
@@ -1552,7 +1552,20 @@ std::string LLViewerRegion::getCapability(const std::string& name) const
{
return "";
}
- return iter->second;
+
+ std::string http_url = iter->second;
+
+ std::string ip_string = mHost.getIPString();
+ std::string host_string = mHost.getHostName();
+
+ std::string::size_type idx = http_url.find(host_string);
+
+ if (!ip_string.empty() && !host_string.empty() && idx != std::string::npos)
+ {
+ http_url.replace(idx, host_string.length(), ip_string);
+ }
+
+ return http_url;
}
void LLViewerRegion::logActiveCapabilities() const