14 Commits
Author SHA1 Message Date
Martin Baulig 280f222afa [System]: Remove 'SECURITY_DEP' conditional from HttpListener and related classes. (#4810) 2017-05-09 11:22:19 -04:00
Marek Safar 9858a95dd1 [System] Don't send response on empty stream write. Fixes #47549 2016-11-23 17:40:49 +01:00
Marek Safar 95b0698304 [System] Clean up some warnings 2016-10-25 14:28:35 +02:00
Marcos Henrich 558a3c0dc6 [System] Fix RequestCanceled ex on ResponseStream.Close
Fixes issues where ResponseStream.Close would throw an exception when
peer had already closed the connection and ResponseStream.Close would
still try to communicating to peer that it was closing.

The issue was brought to our attention by failures on:
  - MonoTests.System.Net.WebRequestTest.TestReceiveCancelation
  - MonoTests.System.Net.HttpWebRequestTest.TestLargeDataReading
2016-07-20 18:31:32 +01:00
Marek Safar eb4e581e88 Few few httplistener races 2012-06-15 13:50:23 +01: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
Gonzalo Paniagua Javier 96793af85e 2008-10-30 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerResponse.cs: removed obsolete comment.
	* ResponseStream.cs: don't read response.SendChunked until after
	getting the response headers.


svn path=/trunk/mcs/; revision=117492
2008-10-30 17:35:24 +00:00
Gonzalo Paniagua Javier 07c165832b 2008-10-23 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't call ProxyRequest twice.
	* WebConnectionData.cs: remove unused fields.

	* WebConnection.cs:
	* WebConnectionStream.cs: when setting the input buffer, check to see
	if the entire response is already there and free up the request slot.
	Fixes bug #423156.

	* ResponseStream.cs:
	* HttpListenerResponse.cs: buffer the headers so that they are sent
	together with the data on the first Write (if any). The fix above
	didn't work with our HttpListener without this.


svn path=/trunk/mcs/; revision=116868
2008-10-23 19:11:33 +00:00
Martin Baulig 59c2f61339 Must close the response here,and must not throw exceptions here; Fixes a handful of issues with handling more than one connection - miguel
svn path=/trunk/mcs/; revision=107127
2008-07-03 00:32:20 +00:00
Miguel de Icaza 54992022ce 2008-06-08 Miguel de Icaza <[email protected]>
* ResponseStream.cs: Do not Close the HttpResponse object here as
	it is possible to issue multiple OutputStream.Close calls (they
	actually happen implicitly through things like StreamWriter.Close,
	and they are in various MSDN samples).

2008-05-28 Gonzalo Paniagua Javier <[email protected]>

svn path=/trunk/mcs/; revision=105259
2008-06-08 16:46:53 +00:00
Sebastien Pouliot 7da033a75a Fix build as HttpListener now depends on X509Certificate2, which can't be build on the first time for 2.0... bla bla bla, and lot of other stuff depends on it
svn path=/trunk/mcs/; revision=69982
2006-12-23 04:34:08 +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 b242cf3c60 2006-05-06 Gonzalo Paniagua Javier <[email protected]>
* ResponseStream.cs:
	* HttpListenerResponse.cs: allow 0 length POST. Patch by Horst Reiterer.
	Closes bug #78316.


svn path=/trunk/mcs/; revision=60365
2006-05-06 20:46:07 +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