mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* As part of the region registration process, the grid service now requests the status of the region using the region http uri just passed in
* If the status cannot be retrieved, then the region startup will terminate. * The aim of this is for earlier detection of situations where the region can send messages out but cannot accept incoming requests (often due to firewall issues) * This is currently an extremely simplistic check which completely trusts whatever http uri is given by the region * This contact may be problematic, though since the user service needs to be able to contact the region http uri, it doesn't seem unreasonable for the grid to have to be able to do so too at this stage * This change will require a prebuild
This commit is contained in:
@@ -144,6 +144,8 @@ namespace OpenSim.Framework.Servers
|
||||
|
||||
string path = request.RawUrl;
|
||||
string handlerKey = GetHandlerKey(request.HttpMethod, path);
|
||||
|
||||
//m_log.DebugFormat("[BASE HTTP SERVER]: Handling {0} request for {1}", request.HttpMethod, path);
|
||||
|
||||
IRequestHandler requestHandler;
|
||||
|
||||
@@ -154,6 +156,7 @@ namespace OpenSim.Framework.Servers
|
||||
if (requestHandler is IStreamedRequestHandler)
|
||||
{
|
||||
IStreamedRequestHandler streamedRequestHandler = requestHandler as IStreamedRequestHandler;
|
||||
|
||||
buffer = streamedRequestHandler.Handle(path, request.InputStream);
|
||||
}
|
||||
else
|
||||
@@ -179,7 +182,7 @@ namespace OpenSim.Framework.Servers
|
||||
}
|
||||
catch (HttpListenerException)
|
||||
{
|
||||
m_log.InfoFormat("[BASE HTTP SERVER] Http request abnormally terminated.");
|
||||
m_log.WarnFormat("[BASE HTTP SERVER]: HTTP request abnormally terminated.");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user