Commit Graph
90 Commits
Author SHA1 Message Date
Atsushi Eno 680c9fc67d 2009-07-08 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs, PeerOutputChannel.cs,
	  PeerInputChannel.cs, PeerChannelFactory.cs : those channels are
	  going to be unified to PeerDuplexChannel. And it is likely that
	  input and output functionalities are to be unified too.


svn path=/trunk/mcs/; revision=137535
2009-07-08 08:21:03 +00:00
Atsushi Eno ef8b4ccae4 2009-07-08 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : (TcpChannelInfo) ease type restriction. I
	  may have to reuse it for peer transport.
	* PeerChannelListener.cs : add binding member.
	* PeerDuplexChannel.cs : remove NIE overrides. Fill fields a bit.


svn path=/trunk/mcs/; revision=137531
2009-07-08 05:13:21 +00:00
Atsushi Eno 09f0a1b008 2009-07-08 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs, HttpChannelFactory.cs,
	  PeerChannelFactory.cs : close opened channels at OnClose() as
	  documented. Implement async methods.
	* PeerChannelListener.cs : removed some NIE overrides.


svn path=/trunk/mcs/; revision=137528
2009-07-08 01:00:32 +00:00
Atsushi Eno 3e8b32b52e 2009-07-02 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : some more async methods.


svn path=/trunk/mcs/; revision=137292
2009-07-02 13:05:39 +00:00
Atsushi Eno 166e408ef7 2009-06-29 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : do not iterate extra channel acceptance
	  and hence close channels a bit more gracefully.

	* TcpDuplexSessionChannel.cs : on Abort(), do just Close() within
	  (almost) no time.
	* TcpChannelListener.cs : accept multiple channels at a time.


svn path=/trunk/mcs/; revision=137093
2009-06-29 17:08:50 +00:00
Atsushi Eno 04bfdda5dd 2009-06-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : do not output all (stored) writer
	  session strings but output only those new ones in current message.
	  This fixes inconsistent body output in repetitive use of sender.


svn path=/trunk/mcs/; revision=137060
2009-06-29 06:07:28 +00:00
Atsushi Eno 4088935212 2009-06-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : handle EndRecord for repetitive
	  operation that does not involve session.
	  Preserve writer session as well as reader session.
	* MessageHeaders.cs : take name and namespace into consideration
	  when creating a serializer.


svn path=/trunk/mcs/; revision=136975
2009-06-26 15:44:16 +00:00
Atsushi Eno e9dbae90d2 2009-06-25 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  Made required changes for repeated use of message exchanges.
	  Hold binary reader session. The channels use it incrementally.
	  Preambles are handled at Open, and EndRecords are handled at
	  Close, Add session shutdown hook here (not working yet though).


svn path=/trunk/mcs/; revision=136867
2009-06-25 18:41:52 +00:00
Atsushi Eno 26e7cc7e0b 2009-06-18 Atsushi Enomoto <[email protected]>
* ChannelListenerBase_1.cs : added cancellation hook here too.
	  HttpChannelListener.cs : use above.
	  Do not allow parallel channel creation (this listener does not
	  allow more than one AcceptChannel().


svn path=/trunk/mcs/; revision=136425
2009-06-18 17:44:02 +00:00
Atsushi Eno 29d6585f14 2009-06-18 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, HttpReplyChannel.cs :
	  Add cancellation hook for async TryReceiveRequest.


svn path=/trunk/mcs/; revision=136407
2009-06-18 14:16:07 +00:00
Atsushi Eno 8a843924f5 2009-06-18 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, HttpListenerManager.cs :
	  slightly improved BuildChannelListener().
	  Implement OnAbort() and differentiate it from OnClose().


svn path=/trunk/mcs/; revision=136406
2009-06-18 14:09:07 +00:00
Atsushi Eno 02f37acb53 2009-06-18 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : remove NIE stubs.


svn path=/trunk/mcs/; revision=136404
2009-06-18 12:52:55 +00:00
Atsushi Eno 93bf74e8a3 2009-06-18 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs : simple async delegate calls here too.


svn path=/trunk/mcs/; revision=136402
2009-06-18 11:57:49 +00:00
Atsushi Eno 36465d4ee2 2009-06-16 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : cosmetic dependency reduction on listener.


svn path=/trunk/mcs/; revision=136220
2009-06-16 13:31:15 +00:00
Atsushi Eno 13cb841a01 2009-06-16 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : cosometic simplification.


svn path=/trunk/mcs/; revision=136219
2009-06-16 13:30:06 +00:00
Atsushi Eno 76a2d59775 2009-06-16 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : Fixed timeout handling. It was causing
	  infinite block in 2.0 profile.


svn path=/trunk/mcs/; revision=136218
2009-06-16 13:28:10 +00:00
Atsushi Eno bf5748c3d7 2009-06-12 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
	  more careful close to avoid NRE.


svn path=/trunk/mcs/; revision=135978
2009-06-12 10:06:54 +00:00
Atsushi Eno 2fe81ef0a3 2009-06-12 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not Close() more than once (though
	  it is allowed to call it twice, we don't reject it; just ignore).


svn path=/trunk/mcs/; revision=135977
2009-06-12 09:58:35 +00:00
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 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