diff options
-rw-r--r-- | OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs | 6 | ||||
-rw-r--r-- | OpenSim/Framework/Util.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | 4 | ||||
-rw-r--r-- | bin/OpenSim.32BitLaunch.exe.config | 10 | ||||
-rwxr-xr-x | bin/OpenSim.exe.config | 10 | ||||
-rw-r--r-- | bin/Robust.32BitLaunch.exe.config | 10 | ||||
-rw-r--r-- | bin/Robust.exe.config | 10 |
7 files changed, 38 insertions, 14 deletions
diff --git a/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs b/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs index 7d48516..a750d8d 100644 --- a/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs +++ b/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -560,7 +560,7 @@ namespace OpenSim.Groups | |||
560 | 560 | ||
561 | // so we have the list of urls to send the notice to | 561 | // so we have the list of urls to send the notice to |
562 | // this may take a long time... | 562 | // this may take a long time... |
563 | Util.FireAndForget(delegate | 563 | Util.RunThreadNoTimeout(delegate |
564 | { | 564 | { |
565 | foreach (string u in urls) | 565 | foreach (string u in urls) |
566 | { | 566 | { |
@@ -571,7 +571,7 @@ namespace OpenSim.Groups | |||
571 | hasAttachment, attType, attName, attItemID, AgentUUIForOutside(attOwnerID)); | 571 | hasAttachment, attType, attName, attItemID, AgentUUIForOutside(attOwnerID)); |
572 | } | 572 | } |
573 | } | 573 | } |
574 | }); | 574 | }, "AddGroupNotice", null); |
575 | 575 | ||
576 | return true; | 576 | return true; |
577 | } | 577 | } |
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index ce4af8b..c7a7341 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -2031,7 +2031,7 @@ namespace OpenSim.Framework | |||
2031 | // Maps (ThreadFunc number -> Thread) | 2031 | // Maps (ThreadFunc number -> Thread) |
2032 | private static ConcurrentDictionary<long, ThreadInfo> activeThreads = new ConcurrentDictionary<long, ThreadInfo>(); | 2032 | private static ConcurrentDictionary<long, ThreadInfo> activeThreads = new ConcurrentDictionary<long, ThreadInfo>(); |
2033 | 2033 | ||
2034 | private static readonly int THREAD_TIMEOUT = 60 * 1000; | 2034 | private static readonly int THREAD_TIMEOUT = 10 * 60 * 1000; // 10 minutes |
2035 | 2035 | ||
2036 | /// <summary> | 2036 | /// <summary> |
2037 | /// Finds threads in the main thread pool that have timed-out, and aborts them. | 2037 | /// Finds threads in the main thread pool that have timed-out, and aborts them. |
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index b270de9..c7bd3d0 100644 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | |||
@@ -963,10 +963,10 @@ namespace OpenSim.Region.CoreModules.Asset | |||
963 | case "assets": | 963 | case "assets": |
964 | con.Output("Ensuring assets are cached for all scenes."); | 964 | con.Output("Ensuring assets are cached for all scenes."); |
965 | 965 | ||
966 | Util.FireAndForget(delegate { | 966 | Util.RunThreadNoTimeout(delegate { |
967 | int assetReferenceTotal = TouchAllSceneAssets(true); | 967 | int assetReferenceTotal = TouchAllSceneAssets(true); |
968 | con.OutputFormat("Completed check with {0} assets.", assetReferenceTotal); | 968 | con.OutputFormat("Completed check with {0} assets.", assetReferenceTotal); |
969 | }); | 969 | }, "TouchAllSceneAssets", null); |
970 | 970 | ||
971 | break; | 971 | break; |
972 | 972 | ||
diff --git a/bin/OpenSim.32BitLaunch.exe.config b/bin/OpenSim.32BitLaunch.exe.config index 25776f2..5b7807a 100644 --- a/bin/OpenSim.32BitLaunch.exe.config +++ b/bin/OpenSim.32BitLaunch.exe.config | |||
@@ -23,11 +23,17 @@ | |||
23 | </layout> | 23 | </layout> |
24 | </appender> | 24 | </appender> |
25 | 25 | ||
26 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
26 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 27 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
27 | <file value="OpenSim.32BitLaunch.log" /> | 28 | <file value="log/OpenSim.32BitLaunch.log" /> |
28 | <appendToFile value="true" /> | ||
29 | <rollingStyle value="Date" /> | 29 | <rollingStyle value="Date" /> |
30 | <datePattern value="'.'yyyy-MM-dd"/> | 30 | <datePattern value="'.'yyyy-MM-dd"/> |
31 | ... | ||
32 | --> | ||
33 | |||
34 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
35 | <file value="OpenSim.32BitLaunch.log" /> | ||
36 | <appendToFile value="true" /> | ||
31 | <filter type="log4net.Filter.LoggerMatchFilter"> | 37 | <filter type="log4net.Filter.LoggerMatchFilter"> |
32 | <loggerToMatch value="special"/> | 38 | <loggerToMatch value="special"/> |
33 | <acceptOnMatch value="false"/> | 39 | <acceptOnMatch value="false"/> |
diff --git a/bin/OpenSim.exe.config b/bin/OpenSim.exe.config index 8b48156..31f1064 100755 --- a/bin/OpenSim.exe.config +++ b/bin/OpenSim.exe.config | |||
@@ -23,11 +23,17 @@ | |||
23 | </layout> | 23 | </layout> |
24 | </appender> | 24 | </appender> |
25 | 25 | ||
26 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
26 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 27 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
27 | <file value="OpenSim.log" /> | 28 | <file value="log/OpenSim.log" /> |
28 | <appendToFile value="true" /> | ||
29 | <rollingStyle value="Date" /> | 29 | <rollingStyle value="Date" /> |
30 | <datePattern value="'.'yyyy-MM-dd"/> | 30 | <datePattern value="'.'yyyy-MM-dd"/> |
31 | ... | ||
32 | --> | ||
33 | |||
34 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
35 | <file value="OpenSim.log" /> | ||
36 | <appendToFile value="true" /> | ||
31 | <filter type="log4net.Filter.LoggerMatchFilter"> | 37 | <filter type="log4net.Filter.LoggerMatchFilter"> |
32 | <loggerToMatch value="special"/> | 38 | <loggerToMatch value="special"/> |
33 | <acceptOnMatch value="false"/> | 39 | <acceptOnMatch value="false"/> |
diff --git a/bin/Robust.32BitLaunch.exe.config b/bin/Robust.32BitLaunch.exe.config index 3bae9ec..95061e1 100644 --- a/bin/Robust.32BitLaunch.exe.config +++ b/bin/Robust.32BitLaunch.exe.config | |||
@@ -21,11 +21,17 @@ | |||
21 | </layout> | 21 | </layout> |
22 | </appender> | 22 | </appender> |
23 | 23 | ||
24 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 25 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
25 | <file value="Robust.32BitLaunch.log" /> | 26 | <file value="log/Robust.32BitLaunch.log" /> |
26 | <appendToFile value="true" /> | ||
27 | <rollingStyle value="Date" /> | 27 | <rollingStyle value="Date" /> |
28 | <datePattern value="'.'yyyy-MM-dd"/> | 28 | <datePattern value="'.'yyyy-MM-dd"/> |
29 | ... | ||
30 | --> | ||
31 | |||
32 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
33 | <file value="Robust.32BitLaunch.log" /> | ||
34 | <appendToFile value="true" /> | ||
29 | <filter type="log4net.Filter.LoggerMatchFilter"> | 35 | <filter type="log4net.Filter.LoggerMatchFilter"> |
30 | <loggerToMatch value="special"/> | 36 | <loggerToMatch value="special"/> |
31 | <acceptOnMatch value="false"/> | 37 | <acceptOnMatch value="false"/> |
diff --git a/bin/Robust.exe.config b/bin/Robust.exe.config index 889a964..b9e01f1 100644 --- a/bin/Robust.exe.config +++ b/bin/Robust.exe.config | |||
@@ -21,11 +21,17 @@ | |||
21 | </layout> | 21 | </layout> |
22 | </appender> | 22 | </appender> |
23 | 23 | ||
24 | <!-- If you want automatic log-rolling then use RollingFileAppender instead of FileAppender: | ||
24 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> | 25 | <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"> |
25 | <file value="Robust.log" /> | 26 | <file value="log/Robust.log" /> |
26 | <appendToFile value="true" /> | ||
27 | <rollingStyle value="Date" /> | 27 | <rollingStyle value="Date" /> |
28 | <datePattern value="'.'yyyy-MM-dd"/> | 28 | <datePattern value="'.'yyyy-MM-dd"/> |
29 | ... | ||
30 | --> | ||
31 | |||
32 | <appender name="LogFileAppender" type="log4net.Appender.FileAppender"> | ||
33 | <file value="Robust.log" /> | ||
34 | <appendToFile value="true" /> | ||
29 | <filter type="log4net.Filter.LoggerMatchFilter"> | 35 | <filter type="log4net.Filter.LoggerMatchFilter"> |
30 | <loggerToMatch value="special"/> | 36 | <loggerToMatch value="special"/> |
31 | <acceptOnMatch value="false"/> | 37 | <acceptOnMatch value="false"/> |