Add more notes to async_call_method relating to UnsafeQueueUserWorkItem

UnsafeQueueUserWorkItem is so called because it allows the calling code to escalate its security privileges.
However, since we must already trust this code anyway in OpenSimulator this is not an issue.
user_profiles
Justin Clark-Casey (justincc) 2013-04-09 23:15:01 +01:00
parent 8690a08881
commit 659c741ff5
1 changed files with 5 additions and 0 deletions

View File

@ -43,9 +43,14 @@
; Sets the method that OpenSim will use to fire asynchronous ; Sets the method that OpenSim will use to fire asynchronous
; events. Valid values are UnsafeQueueUserWorkItem, ; events. Valid values are UnsafeQueueUserWorkItem,
; QueueUserWorkItem, BeginInvoke, SmartThreadPool, and Thread. ; QueueUserWorkItem, BeginInvoke, SmartThreadPool, and Thread.
;
; SmartThreadPool is reported to work well on Mono/Linux, but ; SmartThreadPool is reported to work well on Mono/Linux, but
; UnsafeQueueUserWorkItem has been benchmarked with better ; UnsafeQueueUserWorkItem has been benchmarked with better
; performance on .NET/Windows ; performance on .NET/Windows
;
; UnsafeQueueUserWorkItem refers to the fact that the code creating the event could elevate its security
; privileges. However, as calling code is trusted anyway this is safe (if you set
; TrustedBinaries = true in the [XEngine] section then you already have to trust that incoming code for other reasons).
async_call_method = SmartThreadPool async_call_method = SmartThreadPool
; Max threads to allocate on the FireAndForget thread pool ; Max threads to allocate on the FireAndForget thread pool