Commit Graph
75 Commits
Author SHA1 Message Date
Atsushi Eno 2c854f4100 2009-06-12 Atsushi Enomoto <[email protected]>
* CustomBinding.cs : copy timeouts from argument binding in copy ctr.


svn path=/trunk/mcs/; revision=135975
2009-06-12 09:12:20 +00:00
Atsushi Eno bc5d68a2a4 2009-06-11 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : reject multiple WaitForRequest calls.
	  Temporarily disable HTTP Keep-Alive since it somehow results in
	  wrong reuse of connection (shown as NRE in HttpConnection).
	  Make sure to close RequestContext which was created from it.
	* HttpRequestContext.cs : simplify.


svn path=/trunk/mcs/; revision=135921
2009-06-11 09:33:54 +00:00
Atsushi Eno 6f61807f8d 2009-06-11 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, TcpChannelListener.cs,
	  ChannelListenerBase_1.cs : put common internal listener base
	  and let it handle those async stuff.


svn path=/trunk/mcs/; revision=135916
2009-06-11 09:10:38 +00:00
Atsushi Eno a55851fb5e 2009-06-10 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : fix wrong null delegate check point.


svn path=/trunk/mcs/; revision=135824
2009-06-10 07:15:46 +00:00
Atsushi Eno 3985a2029a 2009-06-10 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
	  now implemented as virtual in base class. Remove NIEs in http.


svn path=/trunk/mcs/; revision=135823
2009-06-10 05:52:37 +00:00
Atsushi Eno c05443832e 2009-06-10 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : hack async implementation.


svn path=/trunk/mcs/; revision=135822
2009-06-10 04:56:16 +00:00
Atsushi Eno c39fe32eb8 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : oops, extra line removal.


svn path=/trunk/mcs/; revision=135674
2009-06-08 16:48:51 +00:00
Atsushi Eno 84b8815a8e 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpListenerManager.cs : rename file too.

	* System.ServiceModel.dll.sources: renamed a file.


svn path=/trunk/mcs/; revision=135673
2009-06-08 16:47:18 +00:00
Atsushi Eno 23a7f085d6 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpChannelListener.cs: renaming, as
	  "ChannelManager" is confusing (there is ChannelManagerBase).


svn path=/trunk/mcs/; revision=135671
2009-06-08 16:43:07 +00:00
Atsushi Eno 84d82f89c4 2009-06-08 Atsushi Enomoto <[email protected]>
* HttpChannelManager.cs, HttpTransportBindingElement.cs,
	  HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
	  they should be split into separate listener->reply channel lines
	  (remove "if (HostingEnvironment.IsAspNet)".)


svn path=/trunk/mcs/; revision=135668
2009-06-08 16:37:52 +00:00
Atsushi Eno a455a4cbc9 fix inconsistent EOLs.
svn path=/trunk/mcs/; revision=135650
2009-06-08 09:16:39 +00:00
Atsushi Eno 198d728a95 2009-06-08 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : OnClosed() requires call to base method.
	  Close() could rather abort the channel, and Abort() does not
	  always invke OnAbort().
	* ChannelBase.cs : add call to base as above.

	* ChannelDispatcher.cs :
	  Add call to base (see CommunicationObject change).

	* InstanceContext.cs :
	  Add call to base (see CommunicationObject change).

	* CommunicationObjectTest.cs : added a couple of close/abort tests
	  for state transition and base call check.


svn path=/trunk/mcs/; revision=135649
2009-06-08 09:10:08 +00:00
Sebastien Pouliot d22e182ad0 In System.ServiceModel.Channels:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* ClientAccessPolicy.cs: Removed
	* CrossDomainAccessManager.cs: Removed
	* CrossDomainPolicy.cs: Removed
	* HttpRequestChannel.cs: Remove call to CrossDomainAccessManager 
	since this is now done inside the BeginGetResponse call (outside
	this assembly) for Moonlight (NET_2_1)

In .:
2009-06-05  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_System.ServiceModel.dll.sources: Remove 
	ClientAccessPolicy.cs, CrossDomainPolicy.cs and 
	CrossDomainAccessManager.cs since the code and checks is now done
	inside System.Windows.Browser.dll, by BrowserHttpWebRequest, for
	every non-site-or-origin web connection - i.e. http[s]


svn path=/trunk/mcs/; revision=135513
2009-06-05 12:03:47 +00:00
Alan McGovern 382c1c1f94 2009-06-04 Alan McGovern <[email protected]>
* HttpRequestChannel.cs : Rewrite ProcessRequest to use the async APIs
	instead of the sync apis. Prevents a possible deadlock condition in
	moonlight. 


svn path=/trunk/mcs/; revision=135467
2009-06-04 18:06:00 +00:00
Atsushi Eno af95841abe 2009-06-03 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : that SL2/ML2 does not seem to allow
          null callbacks, so add hacky ones.


svn path=/trunk/mcs/; revision=135285
2009-06-03 13:14:49 +00:00
Atsushi Eno c3abee4dfd 2009-06-01 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : WaitForMessage() should not return
	  true when socket input is not available.


svn path=/trunk/mcs/; revision=135117
2009-06-01 10:17:26 +00:00
Atsushi Eno fb62ee47c1 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : Moved tcp listener accept to OnOpen().
	  I cannot precisely identify when EndRecord should be consumed,
	  so allow it at either at the end of ReadSizedMessage() or on
	  consuming preamble (it's likely handling EndRecord of previous
	  message though).

	  Now duplex IPeerResolverContract communication works between
	  either of .NET/Mono client and .NET/Mono server.


svn path=/trunk/mcs/; revision=135046
2009-05-29 07:27:16 +00:00
Atsushi Eno 5d79d1dc91 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : looks like I have added some bogus
	  code. Handle preamble ack on ReadSizedMessage() only at server.
	  Consume EndRecord from server, at client side. Though it is likely
	  changed as it's blocking when mono is at server side.


svn path=/trunk/mcs/; revision=135044
2009-05-29 06:33:50 +00:00
Atsushi Eno 45bf2c7c45 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : .NET seems to be based on somewhat
	  different protocol than existing code with related to preamble ack.
	  So changed it to work fine with .NET client (finally).


svn path=/trunk/mcs/; revision=135043
2009-05-29 04:05:16 +00:00
Atsushi Eno d403559714 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : do not output Action twice.


svn path=/trunk/mcs/; revision=134955
2009-05-28 14:30:23 +00:00
Atsushi Eno c4295157ad 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : it did not copy headers.
	* Message.cs : remove 2_1 conditional implementation for buffered
	  copy and hence remove bogus code.


svn path=/trunk/mcs/; revision=134929
2009-05-28 06:56:48 +00:00
Atsushi Eno e788908b53 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageProperties.cs : copy argument is wrong.


svn path=/trunk/mcs/; revision=134928
2009-05-28 05:49:25 +00:00
Atsushi Eno dab61630c2 2009-05-27 Atsushi Enomoto <[email protected]>
* ResolveInfo.cs : argument check.

	* PeerCustomResolverBindingElement.cs : some argument check.


svn path=/trunk/mcs/; revision=134821
2009-05-27 08:13:02 +00:00
Atsushi Eno 1772bc40c6 2009-05-27 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : the serializer somehow leaves binary
	  xml open, so close the writer as well as open elements.
	* TcpDuplexSessionChannel.cs : clear write buffer on each operation.
	  Do not output EndRecord and SizedMessage at a time.


svn path=/trunk/mcs/; revision=134820
2009-05-27 07:38:08 +00:00
Atsushi Eno 7660037690 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : there was a miscalculation on the
	  length of the SizedMessage in the output.


svn path=/trunk/mcs/; revision=134756
2009-05-26 12:33:36 +00:00
Atsushi Eno 7f49907597 2009-05-26 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : use sane default timeout.
	* PeerCustomResolverBindingElement.cs : check timeout arg sanity.
	* TcpDuplexSessionChannel.cs : ditto.


svn path=/trunk/mcs/; revision=134749
2009-05-26 10:25:38 +00:00
Atsushi Eno d94140ff71 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : It seems that buffered stream channel
	  only accepts buffered messages, so do as such for write buffers.
	  Add RelatesTo header.


svn path=/trunk/mcs/; revision=134745
2009-05-26 09:54:44 +00:00
Atsushi Eno ab2cc8b39b 2009-05-26 Atsushi Enomoto <[email protected]>
* DuplexSessionChannelBase.cs, DuplexChannelBase.cs:
	  rename from former to latter.

	* System.ServiceModel.dll.sources: cosmetic file renaming.


svn path=/trunk/mcs/; revision=134743
2009-05-26 07:55:32 +00:00
Atsushi Eno 912e42fd14 2009-05-25 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : reader does not always return full
	  buffer (depending on the stream).


svn path=/trunk/mcs/; revision=134687
2009-05-25 13:14:30 +00:00
Atsushi Eno bd372ca720 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerNode.cs : if Resolve() returns no address, create a new peer
	  address here, and shut it down when it is closed.

	* PeerDuplexChannel.cs, PeerOutputChannel.cs : use new PeerNode.ctor.


svn path=/trunk/mcs/; revision=134686
2009-05-25 13:12:02 +00:00
Atsushi Eno 53ca32f688 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerCustomResolverBindingElement.cs : (Resolve) returned addresses
	  could be null.


svn path=/trunk/mcs/; revision=134685
2009-05-25 13:01:17 +00:00
Atsushi Eno ae046d1957 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : there was annoying non-2.1 stuff.


svn path=/trunk/mcs/; revision=134590
2009-05-22 09:36:29 +00:00
Atsushi Eno e801d197f2 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpChannelFactory.cs : get reader quotas.


svn path=/trunk/mcs/; revision=134589
2009-05-22 05:21:33 +00:00
Atsushi Eno f68640b9a3 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : fix wrong session channel detection.


svn path=/trunk/mcs/; revision=134588
2009-05-22 05:19:10 +00:00
Atsushi Eno 7017be6aa3 2009-05-22 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoderFactory.cs, BinaryMessageEncoder.cs
	  This encoder factory implements CreateSessionEncoder() and binary
	  encoder does support session transmit, in different media type.
	* ChannelManagerBase.cs : added utility method to create appropriate
	  encoder.
	* HttpChannelFactory.cs, HttpChannelListener.cs,
	  MsmqChannelFactory.cs, MsmqChannelListener.cs,
	  PeerChannelFactory.cs, PeerChannelListener.cs,
	  TcpChannelFactory.cs, TcpChannelListener.cs : use above.

	* MessageEncoderTest.cs : test CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134584
2009-05-22 02:27:04 +00:00
Atsushi Eno 86e413610e 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add ReplyTo header.


svn path=/trunk/mcs/; revision=134583
2009-05-22 02:22:56 +00:00
Atsushi Eno bd4ddeac5b 2009-05-21 Atsushi Enomoto <[email protected]>
* DuplexSessionBase.cs : new file, for session implementation.
	* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexSessionChannelBase.cs : changed sync/async implementation
	  pattern. Now async methods call sync methods using delegates.


svn path=/trunk/mcs/; revision=134529
2009-05-21 12:04:59 +00:00
Atsushi Eno a43bf9fe27 2009-05-21 Atsushi Enomoto <[email protected]>
* InputChannelBase.cs, TransportBindingElement.cs, RequestContext.cs:
	  a few minor API fixes.


svn path=/trunk/mcs/; revision=134511
2009-05-21 07:57:13 +00:00
Atsushi Eno bbde1c9701 2009-05-21 Atsushi Enomoto <[email protected]>
* MessageEncoderFactory.cs : implement CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134510
2009-05-21 07:29:46 +00:00
Atsushi Eno a4c362bc65 2009-05-19 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add To header.


svn path=/trunk/mcs/; revision=134394
2009-05-19 12:53:09 +00:00
Atsushi Eno 31009113d4 2009-05-19 Atsushi Enomoto <[email protected]>
* MessageFault.cs : fix several SOAP12 fault deserialization in xml
	  parsing.

	* MessageFaultTest.cs : added more SOAP 12 fault parser tests.
	* soap-fault.xml, soap-fault-incomplete4.xml : new test files.


svn path=/trunk/mcs/; revision=134389
2009-05-19 12:01:20 +00:00
Atsushi Eno f481ba25de 2009-05-18 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : avoid NRE for null IncomingMessageHeaders.


svn path=/trunk/mcs/; revision=134315
2009-05-18 11:48:20 +00:00
Atsushi Eno a22727c329 2009-05-15 Atsushi Enomoto <[email protected]>
* MessageFault.cs : Reason is mandatory. raise XmlException, and
	  CommunicationException in each CreateFault().

	* soap-fault-incomplete.xml : new test file.
	* MessageFaultTest.cs : new test.

	* System.ServiceModel.dll_test.sources: added MessageFaultTest.cs.


svn path=/trunk/mcs/; revision=134197
2009-05-15 11:27:39 +00:00
Atsushi Eno 6525dc5da6 2009-05-15 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : on listener side, get TcpClient at
	  Open(). Some (but not all yet) continuous communication works now.
	  Use ProtocolException. Remove dummy binary session string.


svn path=/trunk/mcs/; revision=134185
2009-05-15 04:54:43 +00:00
Atsushi Eno aba63b35bb 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Moved
	  sending/receiving SizedMessageRecord parts to manager class.
	  Handle writer session, though it is likely broken at dictionary
	  writer part (no string is written so far).
	* BinaryMessageEncoder.cs : add writer session and rename reader
	  session.


svn path=/trunk/mcs/; revision=134117
2009-05-14 10:46:38 +00:00
Atsushi Eno b479bfcbb6 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Via uri
	  is mandatory in initiator preamble packet. Handle Fault reply in
	  initiator preamble.


svn path=/trunk/mcs/; revision=134111
2009-05-14 09:38:45 +00:00
Atsushi Eno 432c16b14f 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : ongoing refactoring to collect [MC-NMF]
	  based communication under TcpBinaryFrameManager class.


svn path=/trunk/mcs/; revision=134107
2009-05-14 08:52:14 +00:00
Jb Evain 045b9fd735 2009-05-13 Jb Evain <[email protected]>
* MessageHeader.cs: use a SL friendly way of creating an XmlReader
	from a StringReader.


svn path=/trunk/mcs/; revision=134064
2009-05-13 15:43:31 +00:00
Atsushi Eno a18fbb9d9d 2009-05-13 Atsushi Enomoto <[email protected]>
* MessageImpl.cs, MessageHeader.cs : eliminate xlinq in 2.1, and
	  actually eliminate DOM-based implementation too in 2.0.

	* Makefile : remove xlinq dependency.


svn path=/trunk/mcs/; revision=134052
2009-05-13 11:53:36 +00:00
Atsushi Eno 9260e9a39f 2009-04-28 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : implement in-band dictionary support
	  in [MC-NMF] and [MC-NBFSE], used in duplex channels. Added some
	  comments for magic numbers based on [MC-NMF].

	* BinaryMessageEncodingBindingElementTest.cs, binary-message.raw:
	  new test files.

	* System.ServiceModel.dll_test.sources: added
	  BinaryMessageEncodingBindingElementTest.cs.


svn path=/trunk/mcs/; revision=132882
2009-04-28 18:55:59 +00:00