* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
as common interface member, and use binary encoder (not text).
svn path=/trunk/mcs/; revision=137669
* PeerNode.cs : some implementation cleanup before significant
refactoring. Mesh state is not maintained here. Use optionally
fixed listener address and port. Set offline status when closed.
* PeerDuplexChannel.cs : PeerNode constructor argument changes.
svn path=/trunk/mcs/; revision=137621
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
now implemented as virtual in base class. Remove NIEs in http.
svn path=/trunk/mcs/; revision=135823
* HttpChannelManager.cs, HttpChannelListener.cs: renaming, as
"ChannelManager" is confusing (there is ChannelManagerBase).
svn path=/trunk/mcs/; revision=135671
* 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
* 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-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
* 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
* 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
* 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
* 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
* 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
* 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
* 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