* Stop grid inventory network failures crashing the client session

* Now the operation will just fail and post a message to the log instead, which may be mysterious to the client but isn't so brutal
This commit is contained in:
Justin Clarke Casey
2008-03-18 19:52:07 +00:00
parent 18f9f1410d
commit 78e24380c8
2 changed files with 56 additions and 13 deletions

View File

@@ -36,6 +36,16 @@ namespace OpenSim.Framework.Servers
{
public class SynchronousRestObjectPoster
{
/// <summary>
/// Perform a synchronous REST request.
/// </summary>
/// <param name="verb"></param>
/// <param name="requestUrl"></param>
/// <param name="obj"> </param>
/// <returns></returns>
///
/// <exception cref="System.Net.WebException">Thrown if we encounter a network issue while posting
/// the request. You'll want to make sure you deal with this as they're not uncommon</exception>
public static TResponse BeginPostObject<TRequest, TResponse>(string verb, string requestUrl, TRequest obj)
{
Type type = typeof (TRequest);