Show http poll handlers in separate http (poll) section of "show http-handlers" console command instead of never showing them (due to a previous bug).

The code was assuming that poll handlers were also included in general http handlers but this was not the case.
0.7.4-extended
Justin Clark-Casey (justincc) 2013-02-27 20:33:11 +00:00
parent bbfde60ad5
commit b53362cdb0
1 changed files with 5 additions and 2 deletions

View File

@ -227,9 +227,12 @@ namespace OpenSim.Framework.Servers
handlers.AppendFormat("\t{0}\n", s);
handlers.AppendFormat("* HTTP:\n");
List<String> poll = httpServer.GetPollServiceHandlerKeys();
foreach (String s in httpServer.GetHTTPHandlerKeys())
handlers.AppendFormat("\t{0} {1}\n", s, (poll.Contains(s) ? "(poll service)" : string.Empty));
handlers.AppendFormat("\t{0}\n", s);
handlers.AppendFormat("* HTTP (poll):\n");
foreach (String s in httpServer.GetPollServiceHandlerKeys())
handlers.AppendFormat("\t{0}\n", s);
// handlers.AppendFormat("* Agent:\n");
// foreach (String s in httpServer.GetAgentHandlerKeys())