Send an acknowledgment of receipt from script to viewer for all commands, which are not sending back HTTP response for FSLSLBridgeRequestResponder

Northspring 2014-06-24 19:16:42 +02:00
parent 074649e40c
commit eac0622f6f
2 changed files with 5 additions and 1 deletions

View File

@ -495,6 +495,7 @@ default
string body = "<llsd><string>" + llList2CSV(responses) + "</string></llsd>";
responses = []; // Free memory
llHTTPResponse(httpReqID, 200, body);
return;
}
@ -612,6 +613,9 @@ default
detachBridge();
}
// Acknowledgment of receipt for all commands, which are not sending back HTTP response for FSLSLBridgeRequestResponder
llHTTPResponse(httpReqID, 200, "<llsd><string>ok</string></llsd>");
}
}

View File

@ -76,7 +76,7 @@ void FSLSLBridgeRequestResponder::result(const LLSD& content)
{
//FSLSLBridgeRequestManager::instance().processBridgeCall(content);
std::string strContent = content.asString();
LL_INFOS() << "Got info: " << strContent << LL_ENDL;
LL_DEBUGS() << "Got info: " << strContent << LL_ENDL;
//do not use - infinite loop, only here for testing.
//FSLSLBridge::instance().viewerToLSL("Response_to_response|" + strContent);