From 3e10dff670c680dcfaa5b888e032f829275100d1 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Wed, 6 May 2009 18:44:19 +0000 Subject: [PATCH] [LIBOMV-506] Fixes the problem in CapsBase (HttpWebRequest) on Mono 2.4. Stream.Close() had to be called before HttpWebRequest.BeginGetResponse(), otherwise the call would hang git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2691 52acb1d6-8a22-11de-b505-999d5b087335 --- OpenMetaverse.Http/CapsBase.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenMetaverse.Http/CapsBase.cs b/OpenMetaverse.Http/CapsBase.cs index a30c49b6..34b3fd30 100644 --- a/OpenMetaverse.Http/CapsBase.cs +++ b/OpenMetaverse.Http/CapsBase.cs @@ -142,6 +142,9 @@ namespace OpenMetaverse.Http // Write our data to the upload stream uploadStream.Write(state.UploadData, 0, state.UploadData.Length); + // We don't have to call Close with .NET, but Mono 2.4 will hang on + // BeginGetResponse if we don't call it + uploadStream.Close(); // Start the request for the remote server response IAsyncResult result = state.Request.BeginGetResponse(GetResponse, state);