Commit Graph
8 Commits
Author SHA1 Message Date
Atsushi Eno 9afba05efd 2010-05-28 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : lock read and write respectively.
	  Finally fixed bug #567672 ('IsOneWay=false' case).

	* CallbackBehaviorAttributeTest.cs : added test for bug #567672
	  ('IsOneWay=false' case).


svn path=/trunk/mcs/; revision=158912
2010-06-15 05:45:38 +00:00
Atsushi Eno 809eae11c2 2010-01-07 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : treat EOF as interrupted stream too (it
	  does not happen when communicating with .NET client but happens with
	  mono). Seealso FIXME comment.
	* TcpDuplexSessionChannel.cs : do not try to close session when it
	  failed to read sized message. The connection is already dead.

	  Fixed bug #567949.


svn path=/trunk/mcs/; revision=149166
2010-01-07 10:31:54 +00:00
Atsushi Eno 89dc160eeb 2010-01-07 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs :
	  Write EndRecord only when the connection is available.
	  Remove hack - do let ChannelDispatcher close the channel.
	* TcpBinaryFrameManager.cs :
	  The socket may be disconnected when trying to read a sized message,
	  so check some socket exceptions.
	  In case the client silently shuts down without EndRecord and
	  reconnects to the server with preamble while expecting a sized
	  message (which is so lame, but that's what .NET often does), refresh
	  preamble and continue.

	  This fixes some cases of bug #567949 but not all.


svn path=/trunk/mcs/; revision=149163
2010-01-07 08:27:47 +00:00
Atsushi Eno 74380340ea 2009-12-26 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : If preamble byte is not available from
	  the client stream, detect it to close the reply or input channel.
	* TcpRequestChannel.cs : send preamble at each request time.
	  It differentiates communication behavior on such cases that involve
	  single open and multiple requests.
	* TcpReplyChannel.cs : close the channel only when the channel is
	  oeprated to close i.e. do not close the socket every time.
	  Process preambles on each request (the same as request channel).


svn path=/trunk/mcs/; revision=148901
2009-12-26 08:46:37 +00:00
Atsushi Eno 713fc59cf3 2009-12-26 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : unsized envelope record may have more
	  than one data block, so consume them accordingly. This should fix
	  large buffer consumption.


svn path=/trunk/mcs/; revision=148900
2009-12-26 05:41:03 +00:00
Atsushi Eno 0dbe067726 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : remove some comment on [MC-PRCH] behavior.
	* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs,
	  TcpReplyChannel.cs, TcpRequestChannel.cs,
	  NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs:
	  rename EndRecord handling method to appropriate one.
	  Write EndRecord from recipient too.


svn path=/trunk/mcs/; revision=140687
2009-08-26 05:00:42 +00:00
Atsushi Eno 899a95c371 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs, TcpRequestChannel.cs, TcpBinaryFrameManager.cs:
	  Send and receive unsized message terminator at once.
	  Send EndRecord mutually. Got one .net client request working.


svn path=/trunk/mcs/; revision=138498
2009-07-23 05:38:17 +00:00
Atsushi Eno 3c099af375 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
	  split out binary frame manager class into separate file.

	* System.ServiceModel.dll.sources:
	  split out binary frame manager class into separate file.


svn path=/trunk/mcs/; revision=138489
2009-07-23 03:02:29 +00:00