Commit Graph
36 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 151ad72517 2009-09-15 Gonzalo Paniagua Javier <[email protected]>
* HttpClientTransportSink.cs: ensure the response stream is disposed.
	* HttpServerTransportSink.cs: use the public API of HttpConnection.
	* RemotingHttpListener.cs: use the public API of HttpConnection
	instead of hooking into an internal method, possibly cause exception
	and leave the Connection in an unstable state.


svn path=/trunk/mcs/; revision=142006
2009-09-16 01:38:49 +00:00
Gonzalo Paniagua Javier 9381095cab 2009-02-08 Gonzalo Paniagua Javier <[email protected]>
* HttpClientTransportSink.cs: if we get an WebException that does not
	have a response, dispatch it to the sink.



svn path=/trunk/mcs/; revision=126288
2009-02-08 22:51:30 +00:00
Michael Hutchinson b43ec9b8e9 2008-11-10 Michael Hutchinson <[email protected]>
* HttpServerTransportSink.cs: Seek to beginning of server response 
	  stream. Fixes Bug 436995 - Xml-Rpc.net does not work since 
	  Mono 1.9.x.


svn path=/trunk/mcs/; revision=118429
2008-11-10 22:36:17 +00:00
Michael Hutchinson aa4bddf53a 2008-09-30 Michael Hutchinson <[email protected]>
* HttpServerChannel.cs: make sure the channel data object is set 
	  when the port is auto-assigned.
	* HttpClientTransportSink.cs: Use the __RequestUri header for the 
	  request's URI. Includes workaround for bad __RequestUri values.
	
	Fixes Bug 378713 - [regression] Remoting - HttpChannel.


svn path=/trunk/mcs/; revision=114530
2008-10-01 00:00:25 +00:00
Michael Hutchinson d820c9b996 2008-09-24 Michael Hutchinson <[email protected]>
* HttpServerTransportSink.cs: Disable chunking on the server, as 
	  for some reason it was breaking the tests. This reduces efficiency 
	  but right now is unavoidable.
	  
	* HttpServerChannel.cs: Implement AddHookChannelUri. Thanks to 
	  Lluis for the patch.


svn path=/trunk/mcs/; revision=113999
2008-09-24 19:30:33 +00:00
Michael Hutchinson 35fc865228 2008-09-23 Michael Hutchinson <[email protected]>
* HttpClientChannel.cs: Fix logic error from ==/!= typo. Stops 
	  channel from trying to handle IPC URLs, which was breaking the 
	  IPC tests.


svn path=/trunk/mcs/; revision=113909
2008-09-23 22:38:38 +00:00
Michael Hutchinson d997190fc1 svn path=/trunk/mcs/; revision=113894 2008-09-23 20:57:12 +00:00
Sebastien Pouliot a73e58bf35 2008-06-14 Sebastien Pouliot <[email protected]>
* HttpRemotingHandler.cs: Remove double assignment to bodyBuffer.
	[Found using Gendarme]


svn path=/trunk/mcs/; revision=105846
2008-06-14 15:34:05 +00:00
Robert Jordan d755781cb0 flush forgotten changelog
svn path=/trunk/mcs/; revision=95544
2008-02-12 18:53:48 +00:00
Robert Jordan c3d3e783a7 2007-10-30 Robert Jordan <[email protected]>
* HttpHelper.cs: Support for the "https" scheme. Make scheme parser
	case invariant. Fixes bug #81701.

	* HttpServerChannel.cs (GetChannelUri): Take channel data into account.

	* HttpServerChannel.cs (SetupChannel): Initialize channel data
	with "null", because at this stage we don't necessary have a valid
	channel URI.


svn path=/trunk/mcs/; revision=88436
2007-10-30 02:14:42 +00:00
Robert Jordan cc8387ea6f In System.Web/System.Web.Configuration:
2007-08-23  Robert Jordan  <[email protected]>

	* WebConfigurationSettings.cs: Move RemotingConfiguration to
	System.Runtime.Remoting.Channels.Http/HttpRemotingHandlerFactory.cs.
	Fixes #19384.

In System.Runtime.Remoting/System.Runtime.Remoting.Channels.Http:
2007-08-23  Robert Jordan  <[email protected]>

	* HttpRemotingHandlerFactory.cs: configure Remoting because
	System.Web doesn't anymore. Fixes #81831.


svn path=/trunk/mcs/; revision=84681
2007-08-23 06:47:58 +00:00
Lluis Sanchez 058b7309cf 2006-12-18 Lluis Sanchez Gual <[email protected]>
* HttpServerChannel.cs: The remoting infrastructure does not call
	  StartListening() anymore, so it has to be called by the channel.


svn path=/trunk/mcs/; revision=69704
2006-12-19 01:18:02 +00:00
Andrew Skiba 05a0ec2065 exceptions propagating incompatible with dotnet. Patch by [email protected]
svn path=/trunk/mcs/; revision=57589
2006-03-05 09:05:09 +00:00
Svetlana Zholkovsky b56cf1715e Fix HttpHandler, HttpHandlerFactory and HttpServerChannel to work properly with a web server hosted applications; Add HttpHandlerFactory.jvm.cs
svn path=/trunk/mcs/; revision=52620
2005-11-06 10:47:25 +00:00
Lluis Sanchez 66f906d53a 2005-10-10 Lluis Sanchez Gual <[email protected]>
* HttpServer.cs: Removed all non-sense regular expressions for
	parsing files. Makes the channel faster and fixes bug #75886.


svn path=/trunk/mcs/; revision=51509
2005-10-10 11:15:36 +00:00
Lluis Sanchez 900212c169 2005-07-06 Lluis Sanchez Gual <[email protected]>
* HttpServer.cs: Close the connection after processing the request.
	Based on a patch by Brion Vibber. Fixes bug #75467.


svn path=/trunk/mcs/; revision=46990
2005-07-06 11:18:31 +00:00
Lluis Sanchez 079557fc7e 2005-05-18 Lluis Sanchez Gual <[email protected]>
* HttpServerChannel.cs: Catch exceptions thrown in the server thread.
	In StopListening, wait for the server thread to stop before returning.


svn path=/trunk/mcs/; revision=44687
2005-05-18 15:55:59 +00:00
Lluis Sanchez ef878caae3 2005-01-25 Lluis Sanchez Gual <[email protected]>
* HttpServer.cs: Use a single stream for in an out stream, since they
	where the same. Set IPAddress and ConnectionId transport headers.


svn path=/trunk/mcs/; revision=39523
2005-01-25 19:17:59 +00:00
Lluis Sanchez ba41d27138 2005-01-14 Lluis Sanchez Gual <[email protected]>
* HttpServerChannel.cs: Use the new RemotingThreadPool to manage threads.
	  Fixed some warnings.
	* HttpServer.cs: Minor fix.


svn path=/trunk/mcs/; revision=38947
2005-01-14 17:29:00 +00:00
Lluis Sanchez 95cc3b3260 2004-12-17 Lluis Sanchez Gual <[email protected]>
* HttpHelper.cs: Removed unused method. Optimized CopyStream method.
	* HttpServerChannel.cs: SendResponse does not return a bool any
	  more, it throws an exception when it fails.
	* HttpServer.cs: Improved handling of errors.


svn path=/trunk/mcs/; revision=37874
2004-12-17 12:01:43 +00:00
Lluis Sanchez 007e9c3169 * HttpClientChannel.cs: In CreateMessageSink, process the remote channel
data if the provided url does not have the expected format. This fixes
	  a regression from the fix for bug #66768 and fixes #68669.

svn path=/trunk/mcs/; revision=35242
2004-10-22 14:12:44 +00:00
Lluis Sanchez df381473f3 * HttpClientChannel.cs: Throw an http exception if the response is a 500,
don't try to deserialize the exception.

svn path=/trunk/mcs/; revision=34444
2004-09-27 20:04:30 +00:00
Lluis Sanchez 0ed89f563f * HttpServerChannel.cs: Default port is 0.
svn path=/trunk/mcs/; revision=28179
2004-05-26 18:25:52 +00:00
Lluis Sanchez 466fabe5ae * HttpServerChannel.cs: Take unused port if the provided prot is 0.
svn path=/trunk/mcs/; revision=28034
2004-05-25 11:34:08 +00:00
Lluis Sanchez a1befbed05 * HttpChannel.cs, HttpClientChannel.cs: Added missing IDictionary
properties.
	* HttpRemotingHandler.cs: Added missing constructor.
	* HttpRemotingHandlerFactory.cs: Made ConfigureHttpChannel private.
	* HttpServerChannel.cs: Fixed IDictionary properties.

svn path=/trunk/mcs/; revision=27245
2004-05-13 08:55:28 +00:00
Lluis Sanchez 1e0b8d3c0e * HttpServer.cs: Removed dead code.
svn path=/trunk/mcs/; revision=26403
2004-04-30 09:25:15 +00:00
Lluis Sanchez 64237762c5 * HttpClientChannel.cs: Set the RequestUri transport header before sending
the request.

svn path=/trunk/mcs/; revision=23549
2004-02-27 19:36:19 +00:00
Lluis Sanchez 12e7fa3749 * HttpRemotingHandlerFactory.cs: Loading of remoting configuration moved
to System.Web.Configuraiton.

svn path=/trunk/mcs/; revision=22754
2004-02-03 23:33:19 +00:00
Lluis Sanchez 2e59e74126 HttpServer.cs: Removed debug code.
svn path=/trunk/mcs/; revision=21070
2003-12-12 16:58:26 +00:00
Lluis Sanchez 292ff44766 * HttpServer.cs: Allow the use of GET method (SdlServerSink supports it).
Added some text constans for transport keys.
	* HttpServerChannel.cs: Add SdlChannelSinkProvider to the default
	sink provider chain. Removed unused ErrorMessage class.

svn path=/trunk/mcs/; revision=20966
2003-12-10 15:56:53 +00:00
Lluis Sanchez 8fe1f64ee8 * HttpHelper.cs: Removed usnused method GetMachineIp.
* HttpServerChannel.cs: Added support for priority, bindTo, useIpAddress and
	  machineName properties.

svn path=/trunk/mcs/; revision=20075
2003-11-16 21:56:13 +00:00
Lluis Sanchez e550dc51cc HttpChannel.cs: Create empty property dictionary in the default constructor.
svn path=/trunk/mcs/; revision=19948
2003-11-13 17:25:43 +00:00
Lluis Sanchez 47d9640fa6 * HttpChannel.cs: Moved initialization code in SetupChannel to the
respective client and server channels. Added implementatoin of the
	  interface IChannelReceiverHook.
	* HttpRemotingHandler.cs: Implemented.
	* HttpRemotingHandlerFactory.cs: Implemented.
	* HttpServer.cs: In general, use Stream instances instead of Socket. It is
	  more reusable in this way. Also improved formatting.
	* HttpServerChannel.cs: Implemented support for IChannelReceiverHook.
	  Added new method DispatchRequest in HttpServerTransportSink that can
	  be reused by HttpRemotingHandler.

svn path=/trunk/mcs/; revision=19943
2003-11-13 16:59:42 +00:00
Lluis Sanchez ee47b84f26 * HttpServerChannel.cs: Removed StartListening call from constructor. It
is called by the remoting framework.
	* HttpClientChannel.cs, HttpHelper.cs: Fixed some formatting.

svn path=/trunk/mcs/; revision=19889
2003-11-12 15:37:19 +00:00
Lluis Sanchez 533d806f5a * HttpHelper.cs: Fixed bug #48468. Patch by Jean-Marc Andre.
* HttpClientChannel.cs HttpServer.cs HttpServerChannel.cs: Fixed some warnings.

svn path=/trunk/mcs/; revision=18145
2003-09-17 11:37:26 +00:00
Lluis Sanchez 92fe3d5d5d * HttpClientChannel.cs: Changed text for user-agent header (removed references
to MS.NET).
	  Removed try/catch from AsyncProcessRequest. If there is an exception it must
	  flow to the caller.
	  in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
	  throws an exception if the result code is 400, 500. Is is not a communication
	  error, but an application or server error. The content of the body must be
	  deserialized like in normal responses.
	  In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
	  efficient way of writing the content.
	  In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
	  new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
	* HttpHelper.cs: Removed some debugging code that is not needed.
	* HttpServer.cs: Improved formatting of some code.
	  In CheckRequest method, send a 100-continue response if the request has
	  the header: expect:100-continue.
	  Method SendResponse: the remoting formatter may include the result code and
	  reason phrase to use in the transport headers. Used them if provided.
	* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
	  a request.

svn path=/trunk/mcs/; revision=17515
2003-08-22 14:09:48 +00:00