Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
commit
46d1ea9e97
|
@ -1269,32 +1269,40 @@ namespace OpenSim.Data.MySQL
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private static TaskInventoryItem BuildItem(IDataReader row)
|
private static TaskInventoryItem BuildItem(IDataReader row)
|
||||||
{
|
{
|
||||||
TaskInventoryItem taskItem = new TaskInventoryItem();
|
try
|
||||||
|
{
|
||||||
|
TaskInventoryItem taskItem = new TaskInventoryItem();
|
||||||
|
|
||||||
taskItem.ItemID = DBGuid.FromDB(row["itemID"]);
|
taskItem.ItemID = DBGuid.FromDB(row["itemID"]);
|
||||||
taskItem.ParentPartID = DBGuid.FromDB(row["primID"]);
|
taskItem.ParentPartID = DBGuid.FromDB(row["primID"]);
|
||||||
taskItem.AssetID = DBGuid.FromDB(row["assetID"]);
|
taskItem.AssetID = DBGuid.FromDB(row["assetID"]);
|
||||||
taskItem.ParentID = DBGuid.FromDB(row["parentFolderID"]);
|
taskItem.ParentID = DBGuid.FromDB(row["parentFolderID"]);
|
||||||
|
|
||||||
taskItem.InvType = Convert.ToInt32(row["invType"]);
|
taskItem.InvType = Convert.ToInt32(row["invType"]);
|
||||||
taskItem.Type = Convert.ToInt32(row["assetType"]);
|
taskItem.Type = Convert.ToInt32(row["assetType"]);
|
||||||
|
|
||||||
taskItem.Name = (String)row["name"];
|
taskItem.Name = (String)row["name"];
|
||||||
taskItem.Description = (String)row["description"];
|
taskItem.Description = (String)row["description"];
|
||||||
taskItem.CreationDate = Convert.ToUInt32(row["creationDate"]);
|
taskItem.CreationDate = Convert.ToUInt32(row["creationDate"]);
|
||||||
taskItem.CreatorIdentification = (String)row["creatorID"];
|
taskItem.CreatorIdentification = (String)row["creatorID"];
|
||||||
taskItem.OwnerID = DBGuid.FromDB(row["ownerID"]);
|
taskItem.OwnerID = DBGuid.FromDB(row["ownerID"]);
|
||||||
taskItem.LastOwnerID = DBGuid.FromDB(row["lastOwnerID"]);
|
taskItem.LastOwnerID = DBGuid.FromDB(row["lastOwnerID"]);
|
||||||
taskItem.GroupID = DBGuid.FromDB(row["groupID"]);
|
taskItem.GroupID = DBGuid.FromDB(row["groupID"]);
|
||||||
|
|
||||||
taskItem.NextPermissions = Convert.ToUInt32(row["nextPermissions"]);
|
taskItem.NextPermissions = Convert.ToUInt32(row["nextPermissions"]);
|
||||||
taskItem.CurrentPermissions = Convert.ToUInt32(row["currentPermissions"]);
|
taskItem.CurrentPermissions = Convert.ToUInt32(row["currentPermissions"]);
|
||||||
taskItem.BasePermissions = Convert.ToUInt32(row["basePermissions"]);
|
taskItem.BasePermissions = Convert.ToUInt32(row["basePermissions"]);
|
||||||
taskItem.EveryonePermissions = Convert.ToUInt32(row["everyonePermissions"]);
|
taskItem.EveryonePermissions = Convert.ToUInt32(row["everyonePermissions"]);
|
||||||
taskItem.GroupPermissions = Convert.ToUInt32(row["groupPermissions"]);
|
taskItem.GroupPermissions = Convert.ToUInt32(row["groupPermissions"]);
|
||||||
taskItem.Flags = Convert.ToUInt32(row["flags"]);
|
taskItem.Flags = Convert.ToUInt32(row["flags"]);
|
||||||
|
|
||||||
return taskItem;
|
return taskItem;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
m_log.ErrorFormat("[MYSQL DB]: Error reading task inventory: itemID was {0}, primID was {1}", row["itemID"].ToString(), row["primID"].ToString());
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static RegionSettings BuildRegionSettings(IDataReader row)
|
private static RegionSettings BuildRegionSettings(IDataReader row)
|
||||||
|
|
|
@ -41,6 +41,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
|
|
||||||
private readonly BaseHttpServer m_server;
|
private readonly BaseHttpServer m_server;
|
||||||
private static Queue m_requests = Queue.Synchronized(new Queue());
|
private static Queue m_requests = Queue.Synchronized(new Queue());
|
||||||
|
private static ManualResetEvent m_ev = new ManualResetEvent(false);
|
||||||
private uint m_WorkerThreadCount = 0;
|
private uint m_WorkerThreadCount = 0;
|
||||||
private Thread[] m_workerThreads;
|
private Thread[] m_workerThreads;
|
||||||
private PollServiceWorkerThread[] m_PollServiceWorkerThreads;
|
private PollServiceWorkerThread[] m_PollServiceWorkerThreads;
|
||||||
|
@ -88,15 +89,17 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
{
|
{
|
||||||
lock (m_requests)
|
lock (m_requests)
|
||||||
m_requests.Enqueue(req);
|
m_requests.Enqueue(req);
|
||||||
|
m_ev.Set();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ThreadStart()
|
public void ThreadStart()
|
||||||
{
|
{
|
||||||
while (m_running)
|
while (m_running)
|
||||||
{
|
{
|
||||||
|
m_ev.WaitOne(1000);
|
||||||
|
m_ev.Reset();
|
||||||
Watchdog.UpdateThread();
|
Watchdog.UpdateThread();
|
||||||
ProcessQueuedRequests();
|
ProcessQueuedRequests();
|
||||||
Thread.Sleep(1000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,4 +155,4 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
m_running = false;
|
m_running = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,9 +89,16 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id, str.ReadToEnd());
|
try
|
||||||
m_server.DoHTTPGruntWork(responsedata,
|
{
|
||||||
|
Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id, str.ReadToEnd());
|
||||||
|
m_server.DoHTTPGruntWork(responsedata,
|
||||||
new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request),req.HttpContext));
|
new OSHttpResponse(new HttpResponse(req.HttpContext, req.Request),req.HttpContext));
|
||||||
|
}
|
||||||
|
catch (ObjectDisposedException) // Browser aborted before we could read body, server closed the stream
|
||||||
|
{
|
||||||
|
// Ignore it, no need to reply
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -508,7 +508,8 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.Warn("[HttpRequestHandler]: http-in request failed; no such url: "+urlkey.ToString());
|
//m_log.Warn("[HttpRequestHandler]: http-in request failed; no such url: "+urlkey.ToString());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//for llGetHttpHeader support we need to store original URI here
|
//for llGetHttpHeader support we need to store original URI here
|
||||||
|
|
|
@ -3570,7 +3570,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// m_reprioritizationTimer.Dispose();
|
// m_reprioritizationTimer.Dispose();
|
||||||
|
|
||||||
RemoveFromPhysicalScene();
|
RemoveFromPhysicalScene();
|
||||||
Animator.Close();
|
if(Animator != null)
|
||||||
|
Animator.Close();
|
||||||
Animator = null;
|
Animator = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12416,9 +12416,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
|
|
||||||
ContactResult result = new ContactResult ();
|
ContactResult result = new ContactResult ();
|
||||||
result.ConsumerID = group.LocalId;
|
result.ConsumerID = group.LocalId;
|
||||||
result.Depth = intersection.distance;
|
// result.Depth = intersection.distance;
|
||||||
result.Normal = intersection.normal;
|
result.Normal = intersection.normal;
|
||||||
result.Pos = intersection.ipoint;
|
result.Pos = intersection.ipoint;
|
||||||
|
result.Depth = Vector3.Mag(rayStart - result.Pos);
|
||||||
|
|
||||||
contacts.Add(result);
|
contacts.Add(result);
|
||||||
});
|
});
|
||||||
|
|
|
@ -667,7 +667,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
|
|
||||||
public static readonly LSLInteger RCERR_UNKNOWN = -1;
|
public static readonly LSLInteger RCERR_UNKNOWN = -1;
|
||||||
public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2;
|
public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2;
|
||||||
public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = 3;
|
public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = -3;
|
||||||
|
|
||||||
public const int KFM_MODE = 1;
|
public const int KFM_MODE = 1;
|
||||||
public const int KFM_LOOP = 1;
|
public const int KFM_LOOP = 1;
|
||||||
|
|
Loading…
Reference in New Issue