10 Commits
Author SHA1 Message Date
David Straw 2d420541ed Async reads no longer return -1 read byte count 2012-07-24 11:55:07 -06:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
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.
2012-06-02 13:16:40 -04:00
Miguel de Icaza 34e8a45dd4 Remove TODO, kill warning
svn path=/trunk/mcs/; revision=113371
2008-09-18 00:34:34 +00:00
Gonzalo Paniagua Javier 5c98891850 2007-01-04 Gonzalo Paniagua Javier <[email protected]>
* RequestStream.cs: initialize the stream in both ctors. Fixes a couple
	of unit tests.


svn path=/trunk/mcs/; revision=70519
2007-01-05 03:14:05 +00:00
Gonzalo Paniagua Javier ac198e410d 2006-12-22 Gonzalo Paniagua Javier <[email protected]>
* EndPointListener.cs:
	* ListenerPrefix.cs:
	* ResponseStream.cs:
	* ChunkedInputStream.cs:
	* HttpConnection.cs:
	* RequestStream.cs: add initial support for HTTPS.


svn path=/trunk/mcs/; revision=69972
2006-12-22 21:50:03 +00:00
Gonzalo Paniagua Javier d8d07db2bb 2006-08-30 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-08-31 00:04:30 +00:00
Gonzalo Paniagua Javier 78e6e65acd 2006-08-30 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-08-30 18:26:01 +00:00
Miguel de Icaza 7c2e7cd974 2006-08-20 Miguel de Icaza <[email protected]>
* 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
2006-08-20 20:34:46 +00:00
Gonzalo Paniagua Javier b509cdc267 2006-02-07 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-02-08 01:33:15 +00:00
Gonzalo Paniagua Javier 3e700ee551 2005-11-17 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerPrefixCollection.cs:
	* EndPointListener.cs:
	* HttpStreamAsyncResult.cs:
	* HttpListenerContext.cs:
	* HttpListenerBasicIdentity.cs:
	* AuthenticationSchemeSelector.cs:
	* HttpListener.cs:
	* WebHeaderCollection.cs:
	* ListenerPrefix.cs:
	* HttpListenerException.cs:
	* HttpResponseHeader.cs:
	* EndPointManager.cs:
	* HttpListenerRequest.cs:
	* HttpRequestHeader.cs:
	* BindIPEndPoint.cs:
	* ResponseStream.cs:
	* ChunkedInputStream.cs:
	* HttpStatusCode.cs:
	* ListenerAsyncResult.cs:
	* ChunkStream.cs:
	* HttpConnection.cs:
	* HttpUtility.cs:
	* HttpListenerResponse.cs:
	* RequestStream.cs: initial implementation of HttpListener. There are
	a few TODOs left (cookies, HTTPS) but almost everything else is in.


svn path=/trunk/mcs/; revision=53169
2005-11-17 12:03:25 +00:00