Changed SRV Request timeout to respond with an event instead of an error

meow-7.2.2
Mark Palange (Mani) 2009-11-09 13:12:43 -08:00
parent 913c29f709
commit 2b5faa0b9c
1 changed files with 7 additions and 2 deletions

View File

@ -141,9 +141,14 @@ void LLLogin::Impl::login_(LLCoros::self& self, std::string uri, LLSD credential
LL_INFOS("LLLogin") << "Requesting SRV record from " << uri << LL_ENDL;
// *NOTE:Mani - Completely arbitrary timeout value for SRV request.
filter.errorAfter(5, "SRV Request timed out!");
// filter.errorAfter(5, "SRV Request timed out!");
//
F32 seconds_to_timeout = 5.0f;
filter.actionAfter(seconds_to_timeout,
sendProgressEvent("offline", "fail.login", LLSD()));
// Make request
// Make request
LLSD request;
request["op"] = "rewriteURI";
request["uri"] = uri;