Author: gonzalo
Date: 2005-07-03 19:22:51 -0400 (Sun, 03 Jul 2005)
New Revision: 46896

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/WebConnectionStream.cs
Log:
2005-07-03 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * WebConnectionStream.cs: initiate writing the body before trying to
        read. This fixes the performance problems observed in web services.
        Closes bug #75455.



Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2005-07-03 22:47:09 UTC (rev 
46895)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2005-07-03 23:22:51 UTC (rev 
46896)
@@ -1,3 +1,9 @@
+2005-07-03 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * WebConnectionStream.cs: initiate writing the body before trying to
+       read. This fixes the performance problems observed in web services.
+       Closes bug #75455.
+
 2005-06-27  Lluis Sanchez Gual <[EMAIL PROTECTED]>
 
        * IPAddress.cs: Changed field names for the sake of serialization

Modified: trunk/mcs/class/System/System.Net/WebConnectionStream.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebConnectionStream.cs    2005-07-03 
22:47:09 UTC (rev 46895)
+++ trunk/mcs/class/System/System.Net/WebConnectionStream.cs    2005-07-03 
23:22:51 UTC (rev 46896)
@@ -525,12 +525,12 @@
                        if (cnc.Data.StatusCode != 0 && cnc.Data.StatusCode != 
100)
                                return;
 
+                       IAsyncResult result = cnc.BeginWrite (bytes, 0, length, 
null, null);
                        if (!initRead) {
                                initRead = true;
                                WebConnection.InitRead (cnc);
                        }
 
-                       IAsyncResult result = cnc.BeginWrite (bytes, 0, length, 
null, null);
                        complete_request_written = cnc.EndWrite (result);
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to