aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKitto Flora2011-02-04 17:32:31 +0000
committerKitto Flora2011-02-04 17:32:31 +0000
commit511b12db6b42f93b552ae9c50043246f35bab890 (patch)
treec57097093283396d07b07b3f3a796ed851027510
parentCorrections for Avatar Auto-pilot target; add llStopMoveToTarget() for Avatar... (diff)
parentRepair x-query-string (diff)
downloadopensim-SC-511b12db6b42f93b552ae9c50043246f35bab890.zip
opensim-SC-511b12db6b42f93b552ae9c50043246f35bab890.tar.gz
opensim-SC-511b12db6b42f93b552ae9c50043246f35bab890.tar.bz2
opensim-SC-511b12db6b42f93b552ae9c50043246f35bab890.tar.xz
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
-rw-r--r--OpenSim/Framework/WebUtil.cs8
-rw-r--r--OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs8
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs2
5 files changed, 13 insertions, 9 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index d731ac5..0593341 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -138,17 +138,17 @@ namespace OpenSim.Framework
138 /// </summary> 138 /// </summary>
139 public static OSDMap PutToService(string url, OSDMap data) 139 public static OSDMap PutToService(string url, OSDMap data)
140 { 140 {
141 return ServiceOSDRequest(url,data,"PUT",10000); 141 return ServiceOSDRequest(url,data,"PUT",20000);
142 } 142 }
143 143
144 public static OSDMap PostToService(string url, OSDMap data) 144 public static OSDMap PostToService(string url, OSDMap data)
145 { 145 {
146 return ServiceOSDRequest(url,data,"POST",10000); 146 return ServiceOSDRequest(url,data,"POST",20000);
147 } 147 }
148 148
149 public static OSDMap GetFromService(string url) 149 public static OSDMap GetFromService(string url)
150 { 150 {
151 return ServiceOSDRequest(url,null,"GET",10000); 151 return ServiceOSDRequest(url,null,"GET",20000);
152 } 152 }
153 153
154 public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout) 154 public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout)
@@ -275,7 +275,7 @@ namespace OpenSim.Framework
275 /// </summary> 275 /// </summary>
276 public static OSDMap PostToService(string url, NameValueCollection data) 276 public static OSDMap PostToService(string url, NameValueCollection data)
277 { 277 {
278 return ServiceFormRequest(url,data,10000); 278 return ServiceFormRequest(url,data,20000);
279 } 279 }
280 280
281 public static OSDMap ServiceFormRequest(string url, NameValueCollection data, int timeout) 281 public static OSDMap ServiceFormRequest(string url, NameValueCollection data, int timeout)
diff --git a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
index 4851b33..66eb747 100644
--- a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
@@ -48,7 +48,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
48 public string url; 48 public string url;
49 public UUID urlcode; 49 public UUID urlcode;
50 public Dictionary<UUID, RequestData> requests; 50 public Dictionary<UUID, RequestData> requests;
51 public bool responseSent;
52 } 51 }
53 52
54 public class RequestData 53 public class RequestData
@@ -61,6 +60,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
61 //public ManualResetEvent ev; 60 //public ManualResetEvent ev;
62 public bool requestDone; 61 public bool requestDone;
63 public int startTime; 62 public int startTime;
63 public bool responseSent;
64 public string uri; 64 public string uri;
65 } 65 }
66 66
@@ -200,13 +200,13 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
200 if (m_RequestMap.ContainsKey(request)) 200 if (m_RequestMap.ContainsKey(request))
201 { 201 {
202 UrlData urlData = m_RequestMap[request]; 202 UrlData urlData = m_RequestMap[request];
203 if (!urlData.responseSent) 203 if (!urlData.requests[request].responseSent)
204 { 204 {
205 urlData.requests[request].responseCode = status; 205 urlData.requests[request].responseCode = status;
206 urlData.requests[request].responseBody = body; 206 urlData.requests[request].responseBody = body;
207 //urlData.requests[request].ev.Set(); 207 //urlData.requests[request].ev.Set();
208 urlData.requests[request].requestDone = true; 208 urlData.requests[request].requestDone = true;
209 urlData.responseSent = true; 209 urlData.requests[request].responseSent = true;
210 } 210 }
211 } 211 }
212 else 212 else
@@ -444,7 +444,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
444 if (request.ContainsKey(key)) 444 if (request.ContainsKey(key))
445 { 445 {
446 string val = (String)request[key]; 446 string val = (String)request[key];
447 if (key == "") 447 if (key != "")
448 { 448 {
449 queryString = queryString + key + "=" + val + "&"; 449 queryString = queryString + key + "=" + val + "&";
450 } 450 }
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index c65a82b..2424194 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2555,6 +2555,8 @@ namespace OpenSim.Region.Framework.Scenes
2555 { 2555 {
2556 */ 2556 */
2557 UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user); 2557 UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user);
2558 if (uac == null)
2559 return 0;
2558 return uac.UserFlags; 2560 return uac.UserFlags;
2559 //} 2561 //}
2560 } 2562 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 93d544b..c31e5d3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -373,6 +373,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
373 public const int PRIM_SCULPT_TYPE_TORUS = 2; 373 public const int PRIM_SCULPT_TYPE_TORUS = 2;
374 public const int PRIM_SCULPT_TYPE_PLANE = 3; 374 public const int PRIM_SCULPT_TYPE_PLANE = 3;
375 public const int PRIM_SCULPT_TYPE_CYLINDER = 4; 375 public const int PRIM_SCULPT_TYPE_CYLINDER = 4;
376 public const int PRIM_SCULPT_FLAG_INVERT = 64;
377 public const int PRIM_SCULPT_FLAG_MIRROR = 128;
376 378
377 public const int MASK_BASE = 0; 379 public const int MASK_BASE = 0;
378 public const int MASK_OWNER = 1; 380 public const int MASK_OWNER = 1;
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index f810fd8..665f4a6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -1058,7 +1058,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
1058 { 1058 {
1059 list ret = new list(); 1059 list ret = new list();
1060 double entry; 1060 double entry;
1061 for (int i = 0; i < src.Data.Length - 1; i++) 1061 for (int i = 0; i < src.Data.Length; i++)
1062 { 1062 {
1063 if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry)) 1063 if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry))
1064 { 1064 {