2009-10-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 18 Oct 2009 02:09:20 +0000 (02:09 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 18 Oct 2009 02:09:20 +0000 (02:09 -0000)
* WebConnectionStream.cs: add 3 missing DoCallback() calls in
EndRead/EndWrite.

svn path=/trunk/mcs/; revision=144315

mcs/class/System/System.Net/ChangeLog
mcs/class/System/System.Net/WebConnectionStream.cs

index 98af8b7e681fba8f6b9fdb6196aed51371ed3879..9180c3b3319db89b39e7df1742790e6c1c7d552d 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-17 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * WebConnectionStream.cs: add 3 missing DoCallback() calls in
+       EndRead/EndWrite.
+
 2009-09-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * EndPointListener.cs: fix matching a listener in presence of a query
index 00fcd059681a7c46211d02bd20ea93838eb88f6e..bafd6e73259da84bd673ebb43c1d6ff324f8cb91 100644 (file)
@@ -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) {