[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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user