Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
* HttpConnection.cs: when the content length is available, keep it
updated after synchronous read. Renamed 'available' to 'remaining_body'.
* RequestStream.cs: when creating the stream, pass the remaining length
starting from the offset in the buffer.
svn path=/trunk/mcs/; revision=64584
* RequestStream.cs: make sure we return 0 when no more bytes left.
Paticularly, when we have a content length and the whole response is
buffered.
svn path=/trunk/mcs/; revision=64567
* RequestStream.cs (Read): A bug fix for #79112 and what I
consider to be an important change.
The bug fix is that we update the "available" variable as soon as
we consume data from Read, this means that a second call into Read
wont block. Available was only being updated on a secondary code
path, now we alwaysupdate it after using FillFromBuffer.
The second component is what I believe the right behavior should
be. There was a check for "if count > available" that set count
to available in that case. The idea was to limit the data read
from the buffer that belonged to this particular request, to allow
pipelining.
But this test was done after FillFromBuffer, which assumed that
all the data held in the buffer (the one used by FillFromBuffer)
must belong to the this request, and only future data did not.
I think my change is correct, but it assumes that the initialized
RequestStream will be used for other pipelined HTTP requests,
which is not something am 100% sure of, so Gonzalo needs to check
this.
svn path=/trunk/mcs/; revision=64114
* HttpWebRequest.cs: don't send the expect-100 if if there's no content.
* HttpListenerRequest.cs:
* HttpConnection.cs:
* RequestStream.cs: use the content length header to avoid reading past
the end of the stream.
Patch by Horst Reiterer.
svn path=/trunk/mcs/; revision=56658