Make it possible to switch whether we serialize osd requests per endpoint or not, either via config (SerializeOSDRequests in [Network]) or via the "debug comms set" console command.

For debug purposes to assess what impact this has on network response in a heavy test environment.
This commit is contained in:
Justin Clark-Casey (justincc)
2013-08-05 23:44:48 +01:00
parent f9dc5815c4
commit 9bcf072795
3 changed files with 74 additions and 5 deletions

View File

@@ -156,7 +156,27 @@ namespace OpenSim.Framework.Console
}
/// <summary>
/// Convert a minimum vector input from the console to an OpenMetaverse.Vector3
/// Convert a console integer to an int, automatically complaining if a console is given.
/// </summary>
/// <param name='console'>Can be null if no console is available.</param>
/// <param name='rawConsoleVector'>/param>
/// <param name='vector'></param>
/// <returns></returns>
public static bool TryParseConsoleBool(ICommandConsole console, string rawConsoleString, out bool b)
{
if (!bool.TryParse(rawConsoleString, out b))
{
if (console != null)
console.OutputFormat("ERROR: {0} is not a true or false value", rawConsoleString);
return false;
}
return true;
}
/// <summary>
/// Convert a console integer to an int, automatically complaining if a console is given.
/// </summary>
/// <param name='console'>Can be null if no console is available.</param>
/// <param name='rawConsoleVector'>/param>