aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorDiva Canto2012-03-13 08:07:11 -0700
committerDiva Canto2012-03-13 08:07:11 -0700
commit37828c9b9a065e5ee4df06e05eecd1e0a41ea07e (patch)
treefbcc970ef6fa4256e98edf71d1ce4dc9c621440c /OpenSim/Framework
parentDatasnapshot: added "secret" to the registration/deregistration query so that... (diff)
parentAdd max thread and min thread information to "xengine status" region console ... (diff)
downloadopensim-SC_OLD-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.zip
opensim-SC_OLD-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.tar.gz
opensim-SC_OLD-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.tar.bz2
opensim-SC_OLD-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.tar.xz
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/MultipartForm.cs2
-rw-r--r--OpenSim/Framework/WebUtil.cs7
2 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Framework/MultipartForm.cs b/OpenSim/Framework/MultipartForm.cs
index 90c4007..7a13e8b 100644
--- a/OpenSim/Framework/MultipartForm.cs
+++ b/OpenSim/Framework/MultipartForm.cs
@@ -119,7 +119,7 @@ namespace OpenSim.Framework
119 // Copy the temporary stream to the network stream 119 // Copy the temporary stream to the network stream
120 formDataStream.Seek(0, SeekOrigin.Begin); 120 formDataStream.Seek(0, SeekOrigin.Begin);
121 using (Stream requestStream = request.GetRequestStream()) 121 using (Stream requestStream = request.GetRequestStream())
122 formDataStream.CopyTo(requestStream, (int)formDataStream.Length); 122 formDataStream.CopyStream(requestStream, (int)formDataStream.Length);
123 } 123 }
124 124
125 #endregion Stream Writing 125 #endregion Stream Writing
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 77f3d9b..ead8f46 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -510,8 +510,13 @@ namespace OpenSim.Framework
510 /// <remarks> 510 /// <remarks>
511 /// Copying begins at the streams' current positions. The positions are 511 /// Copying begins at the streams' current positions. The positions are
512 /// NOT reset after copying is complete. 512 /// NOT reset after copying is complete.
513 /// NOTE!! .NET 4.0 adds the method 'Stream.CopyTo(stream, bufferSize)'.
514 /// This function could be replaced with that method once we move
515 /// totally to .NET 4.0. For versions before, this routine exists.
516 /// This routine used to be named 'CopyTo' but the int parameter has
517 /// a different meaning so this method was renamed to avoid any confusion.
513 /// </remarks> 518 /// </remarks>
514 public static int CopyTo(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy) 519 public static int CopyStream(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy)
515 { 520 {
516 byte[] buffer = new byte[4096]; 521 byte[] buffer = new byte[4096];
517 int readBytes; 522 int readBytes;