Commit Graph
27 Commits
Author SHA1 Message Date
Atsushi Eno 0bb7a5deff Prepare for HostNameComparisonMode support (i.e. incomplete).
This is for bugfix #687580.
2011-04-16 01:05:22 +09:00
Marek Safar c8c8fc7769 Fixed missing protected internal modifier 2011-01-08 19:26:53 +00: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 d718a17c96 [wcf] Make sure context exists in the dictionary getting its associated wait handle.
SvcHttpHandler maintains a mapping of HttpContext to ManualResetEvent. Entries are
removed from the cache in EndHttpRequest. The code makes sure the context exists in
the cache before attempting to access it.
2010-09-29 12:44:27 +02: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 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 332843cd5b 2010-05-21 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove Sleep() hack. The host is now ensured
	  to wait for channels opened.


svn path=/trunk/mcs/; revision=157669
2010-05-21 09:07:48 +00:00
Atsushi Eno 8560cbb291 2010-05-21 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove unused field. Some code cleanup.


svn path=/trunk/mcs/; revision=157661
2010-05-21 04:44:51 +00:00
Atsushi Eno 1e0be4e748 2010-03-17 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs,
	  HttpListenerManager.cs : refactoring on acquiring SvcHttpHandler
	  to not raise "not found" error (see bug #573795).


svn path=/trunk/mcs/; revision=153712
2010-03-17 07:05:41 +00:00
Atsushi Eno ab60f8ab46 2010-02-04 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : a wait handle could be used for more than one
	  requests and hence it sometimes blocked one reply channel. Now
	  it creates a wait handle for each ASP.NET request so that such
	  multiple use should not occur. This should fix blocking on
	  concurrent requests (it indeed fixes as long as I can see).

	* HTTP_listener_notes.txt: some notes updated.


svn path=/trunk/mcs/; revision=150850
2010-02-04 11:09:03 +00:00
Atsushi Eno e1f67f786c 2010-02-04 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : Use lock when it tries to create the service
	  host.


svn path=/trunk/mcs/; revision=150842
2010-02-04 08:49:58 +00:00
Atsushi Eno 0af00e9347 2009-10-22 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : move back previous listener selector code in
	  ProcessRequest(). Unlike HttpListener, ASP.NET does not refine
	  and differentiate requests to deeper paths (such as /jsdebug), so
	  we need such refinement here.


svn path=/trunk/mcs/; revision=144652
2009-10-22 16:40:53 +00:00
Atsushi Eno 56c050c5ae 2009-10-22 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, HttpReplyChannel.cs, AspNetReplyChannel.cs,
	  HttpChannelListener.cs, HttpListenerManager.cs :
	  Similar refactoring on ASP.NET side to the previous one.
	  Added ASP.NET implementation of HttpListenerManager and use some
	  part of it in SvcHttpHandler (ASP.NET stack does not fully make use
	  of the manager yet).
	  Rewrote AspNetReplyChannel to become almost the same as
	  HttpSimpleReplyChannel, to hopefully unify them later.
	  Now it dispatches requests to *.svc for wsdl, help and SOAP as long
	  as ServiceThrottle has MaxConcurrentSessions=1. Also REST calls
	  are still broken.


svn path=/trunk/mcs/; revision=144605
2009-10-22 07:01:40 +00:00
Atsushi Eno 048903c03e 2009-10-13 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
	  significant rewrite to cooperate wcf handler and asp.net handler
	  to not mix multiple WCF listener within the asp.net handler.
	  So far it mostly works when 1) there are no ChannelDispatchers
	  that have an identical listen Uri and 2) MaxConcurrentSessions is
	  1 (must be explicitly set).


svn path=/trunk/mcs/; revision=144008
2009-10-13 12:12:49 +00:00
Atsushi Eno f85fb44369 2009-10-06 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : use file path given by the factory to
	  construct BaseAddresses. Requests to "test.svc/jsdebug" should
	  not be handled as request to "jsdebug" file, it's rather an
	  "argument" to "test.svc".


svn path=/trunk/mcs/; revision=143545
2009-10-06 18:07:13 +00:00
Atsushi Eno 1b211df0d6 2009-10-06 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, HttpChannelListener.cs : some significant
	  rewrite to handle shutdown situation better. The listeners should
	  not close channels that it opened. Instead, just stop accepting
	  further requests. Removed blocking mutex on WaitForRequest().
	  Now xsp shuts down as expected.


svn path=/trunk/mcs/; revision=143498
2009-10-06 09:32:38 +00:00
Atsushi Eno 906dd20f80 2009-10-02 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add VirtualPathExtension.cs.

	* VirtualPathExtension.cs : new file.

	* HttpTransportBindingElement.cs, SvcHttpHandlerFactory.cs :
	  revert the change, to use internal asp.net state again.
	* SvcHttpHandler.cs : add VirtualPathExtension.

	* ConfigUtil.cs : revert the change, to use ServiceHostingEnvironment
	  internal member again.

	* ServiceHostingEnvironment.cs : revert the change, to use
	  internal asp.net state again.


svn path=/trunk/mcs/; revision=143277
2009-10-02 11:24:40 +00:00
Atsushi Eno bfd1ab4d0f 2009-10-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove unused code.


svn path=/trunk/mcs/; revision=143243
2009-10-02 05:22:46 +00:00
Atsushi Eno fe21efeb9c 2009-09-30 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs, HttpTransportBindingElement.cs :
	  use AspNetCompatibilityEnabled.
	* SvcHttpHandler.cs : disable ApplyConfiguration(). It should be done
	  at ServiceHostBase.
	* AspNetReplyChannel.cs : remove extra field.

	* ServiceHostingEnvironment.cs : use AspNetCompatibilityEnabled as
	  ASP.NET switch.


svn path=/trunk/mcs/; revision=142953
2009-09-30 03:47:41 +00:00
Atsushi Eno 6598a1ace1 2009-09-29 Atsushi Enomoto <[email protected]>
* AspNetReplyChannel.cs, HttpReplyChannel.cs : add some comments.
	* SvcHttpHandlerFactory.cs, SvcHttpHandler.cs, HttpChannelListener.cs:
	  Make sure that AspNetChannelListener is bound to correct
	  SvcHttpHandler, regardless of specific request URI. It is required
	  for both WSDL requests and RESTful binding requests.


svn path=/trunk/mcs/; revision=142880
2009-09-29 15:06:36 +00:00
Atsushi Eno 47dfe0a55e 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : URI trailing '/' can be added only when the
	  relative URI is non-empty. Do not make http://host/foo.svc as
	  http://host/foo.svc/ , it's not a directory.

	* SvcHttpHandler.cs : set Uri property based on baseAddresses and
	  path, to pick those endpoints that are added at custom factories.


svn path=/trunk/mcs/; revision=141307
2009-09-04 09:55:04 +00:00
Atsushi Eno 0a17ae4318 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : apply configuration, and if there is still no
	  endpoint, then add default one.


svn path=/trunk/mcs/; revision=141230
2009-09-03 11:08:35 +00:00
Atsushi Eno e5518a68ff 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : another URL to make relative.


svn path=/trunk/mcs/; revision=141227
2009-09-03 10:49:35 +00:00
Atsushi Eno b7389dd966 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : some GetHandler changes.
	* SvcHttpHandler.cs : significant changes on receiver structure. Now
	  ProcessRequest() stores pending requests (this might be extraneous,
	  but maybe useful when it implements async handler). Also removed
	  reply_channel field as it may become to handle multiple requests.
	* HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
	* AspNetReplyChannel.cs : make it receive requests like
	  HttpReplyChannel (for HttpListener) to make them consistent.


svn path=/trunk/mcs/; revision=141224
2009-09-03 10:13:08 +00:00
Atsushi Eno 5ce2b80051 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
	  relative or absolute. new Uri ("/foobar") doesn't work on non-unix
	  environment.


svn path=/trunk/mcs/; revision=141206
2009-09-03 06:13:18 +00:00
Jb Evain bdd0809c70 move to from olive to mcs
svn path=/trunk/mcs/; revision=111187
2008-08-20 21:24:37 +00:00