HTTP inventory fetching enabled.

This commit is contained in:
Shyotl
2012-01-21 02:37:22 -06:00
parent 40400d696b
commit d7d65df9e0
6 changed files with 28 additions and 17 deletions

View File

@@ -670,19 +670,19 @@
<key>EstateChangeInfo</key>
<boolean>true</boolean>
<key>FetchInventoryDescendents</key>
<key>FetchInventoryDescendents2</key>
<boolean>false</boolean>
<key>WebFetchInventoryDescendents</key>
<boolean>false</boolean>
<key>FetchInventory</key>
<key>FetchInventory2</key>
<boolean>true</boolean>
<key>FetchLibDescendents</key>
<key>FetchLibDescendents2</key>
<boolean>true</boolean>
<key>FetchLib</key>
<key>FetchLib2</key>
<boolean>true</boolean>
</map>

View File

@@ -14459,6 +14459,17 @@
<key>Value</key>
<integer>1</integer>
</map>
<key>UseHTTPInventory</key>
<map>
<key>Comment</key>
<string>Allow use of http inventory transfers instead of UDP</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>FloaterUploadRect</key>
<map>
<key>Comment</key>

View File

@@ -185,8 +185,8 @@ void LLInventoryModelBackgroundFetch::backgroundFetch()
if (mBackgroundFetchActive && gAgent.getRegion())
{
// If we'll be using the capability, we'll be sending batches and the background thing isn't as important.
std::string url = gAgent.getRegion()->getCapability("FetchInventoryDescendents");
if (false /*gSavedSettings.getBOOL("UseHTTPInventory")*/ && !url.empty())
std::string url = gAgent.getRegion()->getCapability("FetchInventoryDescendents2");
if (gSavedSettings.getBOOL("UseHTTPInventory") && !url.empty())
{
bulkFetch(url);
return;
@@ -605,7 +605,7 @@ void LLInventoryModelBackgroundFetch::bulkFetch(std::string url)
}
if (body_lib["folders"].size())
{
std::string url_lib = gAgent.getRegion()->getCapability("FetchLibDescendents");
std::string url_lib = gAgent.getRegion()->getCapability("FetchLibDescendents2");
LLInventoryModelFetchDescendentsResponder *fetcher = new LLInventoryModelFetchDescendentsResponder(body_lib, recursive_cats);
LLHTTPClient::post(url_lib, body_lib, fetcher, 300.0);

View File

@@ -262,8 +262,8 @@ void fetch_items_from_llsd(const LLSD& items_llsd)
{
if (!items_llsd.size() || gDisconnected) return;
LLSD body;
body[0]["cap_name"] = "FetchInventory";
body[1]["cap_name"] = "FetchLib";
body[0]["cap_name"] = "FetchInventory2";
body[1]["cap_name"] = "FetchLib2";
for (S32 i=0; i<items_llsd.size();i++)
{
if (items_llsd[i]["owner_id"].asString() == gAgent.getID().asString())

View File

@@ -220,9 +220,9 @@ void LLViewerInventoryItem::fetchFromServer(void) const
std::string url;
if( ALEXANDRIA_LINDEN_ID.getString() == mPermissions.getOwner().getString())
url = gAgent.getRegion()->getCapability("FetchLib");
url = gAgent.getRegion()->getCapability("FetchLib2");
else
url = gAgent.getRegion()->getCapability("FetchInventory");
url = gAgent.getRegion()->getCapability("FetchInventory2");
if (!url.empty())
{
@@ -500,7 +500,7 @@ bool LLViewerInventoryCategory::fetchDescendents()
std::string url;
if (gAgent.getRegion())
{
url = gAgent.getRegion()->getCapability("FetchInventoryDescendents");
url = gAgent.getRegion()->getCapability("FetchInventoryDescendents2");
}
else
{

View File

@@ -1501,12 +1501,12 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames)
capabilityNames.append("ObjectMedia");
capabilityNames.append("ObjectMediaNavigate");*/
if (false)//gSavedSettings.getBOOL("UseHTTPInventory")) //Caps suffixed with 2 by LL. Don't update until rest of fetch system is updated first.
if (gSavedSettings.getBOOL("UseHTTPInventory")) //Caps suffixed with 2 by LL. Don't update until rest of fetch system is updated first.
{
capabilityNames.append("FetchLib");
capabilityNames.append("FetchLibDescendents");
capabilityNames.append("FetchInventory");
capabilityNames.append("FetchInventoryDescendents");
capabilityNames.append("FetchLib2");
capabilityNames.append("FetchLibDescendents2");
capabilityNames.append("FetchInventory2");
capabilityNames.append("FetchInventoryDescendents2");
}
capabilityNames.append("GetDisplayNames");