Quellcode durchsuchen

2009-10-17 Gonzalo Paniagua Javier <[email protected]>

	* WebConnectionStream.cs: add 3 missing DoCallback() calls in
	EndRead/EndWrite.


svn path=/trunk/mcs/; revision=144315
Gonzalo Paniagua Javier vor 16 Jahren
Ursprung
Commit
eafc6c8b08

+ 5 - 0
mcs/class/System/System.Net/ChangeLog

@@ -1,3 +1,8 @@
+2009-10-17 Gonzalo Paniagua Javier <[email protected]>
+
+	* WebConnectionStream.cs: add 3 missing DoCallback() calls in
+	EndRead/EndWrite.
+
 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
 
 	* EndPointListener.cs: fix matching a listener in presence of a query

+ 4 - 1
mcs/class/System/System.Net/WebConnectionStream.cs

@@ -400,6 +400,7 @@ namespace System.Net
 					nextReadCalled = true;
 					cnc.Close (true);
 					result.SetCompleted (false, exc);
+					result.DoCallback ();
 					throw;
 				}
 
@@ -571,10 +572,12 @@ namespace System.Net
 				throw result.Exception;
 
 			try {
-				cnc.EndWrite (request, result.InnerAsyncResult);
+				cnc.EndWrite2 (request, result.InnerAsyncResult);
 				result.SetCompleted (false, 0);
+				result.DoCallback ();
 			} catch (Exception e) {
 				result.SetCompleted (false, e);
+				result.DoCallback ();
 				throw;
 			} finally {
 				if (sendChunked) {