Commit Graph
21 Commits
Author SHA1 Message Date
Atsushi Eno 1fe37c584d HTTP authentication in HttpListener had dropped during refactoring. Now it's back. 2011-02-17 21:04:34 +09:00
Marek Habersack d5e6ca38d5 [wcf] AJAX GET requests work now.
HttpListenerManagerTable always looked up HttpListerManager instances using the full URI
while it should have disregarded the /operation?parameters part of the request in order
to match the service endpoint's base address.
2010-11-09 15:16:36 +01:00
Marek Habersack d4bb1c86b7 [wcf] make /js and /jsdebug dispatchers work.
There were several issues here:

- The IChannelDispatcherBoundListener was defined twice, in two different namespaces, and it caused code in
  ChannelDispatcher.Attach not to set its associated listener's ChannelDispatcher property to the correct value.
  This, in turn, caused incorrect HttpListenerManagerTable operation, where it would put the "/js" and "/jsdebug"
  dispatchers in separate HttpListenerManagers, instead of in the main (base) service's one.
- After fixing the above, it turned out that SvcHttpHandler selected the manager based on the host's base address,
  when it should first try to find one whose URL matches the current request exactly.
2010-10-20 15:04:37 +02:00
Marek Habersack 3942f0720e [wcf] Don't close HTTP response prematurely.
Service is invoked in the context of the System.Web pipeline and closing the response before the final
output stream flush causes the generated response not to ever reach the client. This patch makes sure
the System.Web pipeline takes care of all the response housekeeping.
2010-10-18 20:55:22 +02:00
Atsushi Eno ec2f12c8be Remove extra call to HttpResponse.Flush() which would crash. 2010-10-01 09:11:26 +09:00
Atsushi Eno 9d66f85f1c Filter requests only by paths, excluding host and port. 2010-09-24 16:57:38 +09:00
Atsushi Eno dbfe965d11 Add not-working code for TransferMode support. 2010-08-30 18:15:26 +09:00
Atsushi Eno a92d72cf78 Disable separate loop for HttpListener context acquisition. It prevents HttpStandaloneChannelListener from closing itself. 2010-08-24 18:33:12 +09:00
Atsushi Eno 69f6ed13fb When closing the listeners, TryDequeueRequest() could be somehow invoked after the listener entry was removed, so expect null search result. 2010-08-20 18:47:57 +09:00
Atsushi Eno 64372ac47a 2010-07-14 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs, MessageEncoder.cs:
	  The default content type value is null, not the ContentType value.

	* HttpReplyChannel.cs : pass HTTP ContentType header value to
	  MessageEncoder.ReadMessage().


svn path=/trunk/mcs/; revision=160376
2010-07-14 18:20:24 +00:00
Atsushi Eno e463b86247 2010-07-08 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : remove extra Action handling and old comment.


svn path=/trunk/mcs/; revision=160042
2010-07-08 10:32:23 +00:00
Atsushi Eno cb97b9bb02 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs, HttpChannelListener.cs, HttpReplyChannel.cs:
	  rename unnecessary "Standalone" (removed).

	* HttpTransportbindingElement.cs : remove "Standalone".


svn path=/trunk/mcs/; revision=159916
2010-07-05 17:39:40 +00:00
Atsushi Eno ab39e8acac 2010-07-05 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs :
	  moved IChannelDispatcherBoundListener from HttpChannelListener.cs.

	* SvcHttpHandler.cs : removed old code and #if blocks.

	* HttpStandaloneReplyChannel.cs
	  HttpStandaloneRequestContext.cs
	  HttpStandaloneChannelListener.cs
	  HttpReplyChannel.cs
	  HttpRequestContext.cs
	  HttpChannelListener.cs : renamed former 3 files to latter 3 files.

	* System.ServiceModel.dll.sources :
	  renamed new HTTP channel listener implementation sources, and
	  removed old sources.



svn path=/trunk/mcs/; revision=159913
2010-07-05 17:29:24 +00:00
Atsushi Eno 10e67ce38f 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpChannelListenerEntry.cs,
	  HttpContextInfo.cs, HttpListenerManager.cs,
	  HttpStandaloneRequestContext.cs, HttpListenerManagerTable.cs:
	  Fixed wsdl support in the new codebase, so enabled it again, and
	  made significant changes for ASP.NET integration. Now ASP.NET
	  implementation switched to the new one.

	* SvcHttpHandler.cs : add required code for new ASP.NET HTTP stack.
	  Support for new and old stack (both) are temporarily enabled.
	* HttpTransportBindingElement.cs : switch to new ASP.NET stack.


svn path=/trunk/mcs/; revision=159907
2010-07-05 14:48:32 +00:00
Atsushi Eno a10ecfd718 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs
	  HttpContextInfo.cs
	  HttpListenerManager.cs
	  HttpStandaloneRequestContext.cs
	  HttpListenerManagerTable.cs : revert previous changes, regression
	  on wsdl support.


svn path=/trunk/mcs/; revision=159881
2010-07-05 09:31:51 +00:00
Atsushi Eno cd0e019d14 2010-07-02 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpStandaloneRequestContext.cs:
	  add more code that the asp.net stuff will become like.

	* SvcHttpHandlerFactory.cs : remove unused code.
	* SvcHttpHandler.cs : ditto. Add some code for what new asp.net
	  support will look like.


svn path=/trunk/mcs/; revision=159818
2010-07-02 16:10:21 +00:00
Atsushi Eno b0d401fcc4 2010-07-02 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpListenerManager.cs,
	  HttpStandaloneRequestContext.cs :
	  refactoring, to add ASP.NET implementation. (not in use yet)


svn path=/trunk/mcs/; revision=159817
2010-07-02 15:47:08 +00:00
Atsushi Eno e7fa8d1320 2010-07-02 Atsushi Enomoto <[email protected]>
* HttpContextInfo.cs, HttpListenerManager.cs,
	  HttpListenerManagerTable.cs : add implementation for ASP.NET, not
	  in use yet.


svn path=/trunk/mcs/; revision=159811
2010-07-02 11:29:23 +00:00
Atsushi Eno 4bf24b88db 2010-06-24 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : finish pending wait handle when closing
	  a listener. Fixed the issue on closing host/listener/channels.


svn path=/trunk/mcs/; revision=159490
2010-06-24 11:58:49 +00:00
Atsushi Eno 6667c8e584 2010-06-24 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs : do not try to enter close loop
	  between request context and this.


svn path=/trunk/mcs/; revision=159489
2010-06-24 11:53:20 +00:00
Atsushi Eno 183105f179 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpStandaloneChannelListener.cs
	  HttpStandaloneReplyChannel.cs
	  HttpStandaloneRequestContext.cs
	  HttpListenerManagerTable.cs
	  HttpChannelListenerEntry.cs
	  HttpContextInfo.cs
	  HttpListenerManager.cs :
	  Refresh implementation for HTTP channel listener in new namespace,
	  which works fine with throttling.

	  It still has some issue in closing channels or listeners, so it
	  does not replace existing implementation yet.


svn path=/trunk/mcs/; revision=159439
2010-06-23 17:09:10 +00:00