Author: gonzalo
Date: 2005-04-07 15:59:25 -0400 (Thu, 07 Apr 2005)
New Revision: 42650
Modified:
trunk/mcs/class/System/System.Net/ChangeLog
trunk/mcs/class/System/System.Net/WebConnectionStream.cs
Log:
2005-04-07 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* WebConnectionStream.cs: ForceCompletion actually calls NextRead. No
need to wait for a Close/ReadAll when we have no content.
Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2005-04-07 16:18:54 UTC (rev
42649)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2005-04-07 19:59:25 UTC (rev
42650)
@@ -1,3 +1,8 @@
+2005-04-07 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * WebConnectionStream.cs: ForceCompletion actually calls NextRead. No
+ need to wait for a Close/ReadAll when we have no content.
+
2005-04-04 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* NtlmClient.cs: fix typo in assembly name.
Modified: trunk/mcs/class/System/System.Net/WebConnectionStream.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebConnectionStream.cs 2005-04-07
16:18:54 UTC (rev 42649)
+++ trunk/mcs/class/System/System.Net/WebConnectionStream.cs 2005-04-07
19:59:25 UTC (rev 42650)
@@ -57,7 +57,6 @@
byte [] headers;
bool disposed;
bool headersSent;
- bool forceCompletion;
public WebConnectionStream (WebConnection cnc)
{
@@ -116,13 +115,14 @@
internal void ForceCompletion ()
{
- forceCompletion = true;
+ nextReadCalled = true;
+ cnc.NextRead ();
}
internal void CheckComplete ()
{
bool nrc = nextReadCalled;
- if (forceCompletion || (!nrc && readBufferSize -
readBufferOffset == contentLength)) {
+ if (!nrc && readBufferSize - readBufferOffset ==
contentLength) {
nextReadCalled = true;
cnc.NextRead ();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches