mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
* Event queue is now polling..
* returns FAKEEVENT instead of the connection returning a 502. It doesn't like our 502's for some reason.. so, in leau of this.. send it a fake event. * Once again, this is still 'really early' code, so please don't blame us if you have no more threads left.
This commit is contained in:
@@ -991,6 +991,7 @@ namespace OpenSim.Framework.Servers
|
||||
string responseString = (string)responsedata["str_response_string"];
|
||||
string contentType = (string)responsedata["content_type"];
|
||||
|
||||
|
||||
if (responsedata.ContainsKey("keepalive"))
|
||||
response.KeepAlive = true;
|
||||
|
||||
@@ -1003,7 +1004,7 @@ namespace OpenSim.Framework.Servers
|
||||
}
|
||||
|
||||
// The client ignores anything but 200 here for web login, so ensure that this is 200 for that
|
||||
|
||||
|
||||
response.StatusCode = responsecode;
|
||||
|
||||
if (responsecode == (int)OSHttpStatusCode.RedirectMovedPermanently)
|
||||
@@ -1028,7 +1029,7 @@ namespace OpenSim.Framework.Servers
|
||||
response.SendChunked = false;
|
||||
response.ContentLength64 = buffer.Length;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
@@ -1042,6 +1043,7 @@ namespace OpenSim.Framework.Servers
|
||||
{
|
||||
response.OutputStream.Close();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void SendHTML404(OSHttpResponse response, string host)
|
||||
|
||||
Reference in New Issue
Block a user