12 Commits
Author SHA1 Message Date
Robert Jordan a268517e55 2008-06-18 Robert Jordan <[email protected]>
* TcpMessageIO.cs: Handle zero length streams. Fixes #398783.


svn path=/trunk/mcs/; revision=106194
2008-06-19 10:38:23 +00:00
Robert Jordan a8907b2e98 2006-01-09 Robert Jordan <[email protected]>
* TcpServerChannel.cs (ProcessMessages): Flush the stream only when
	necessary (TcpServerTransportSink.InternalProcessMessage does it anyway),
	otherwise pending OneWay & async messages are lost.
	* TcpMessageIO.cs (SendMessageStream): Mark OneWay messages as such.
	Fixes MS.NET interoperability.
	* TcpClientTransportSink.cs (AsyncProcessRequest):
	Use the new TcpMessageIO.SendMessageStream overload to mark OneWay
	requests. Fixes bug #80406.


svn path=/trunk/mcs/; revision=70685
2007-01-09 00:22:40 +00:00
Lluis Sanchez 2d43636c27 2005-01-21 Lluis Sanchez Gual <[email protected]>
* TcpMessageIO.cs: Added a buffer parameter to ReceiveMessageStatus,
	to avoid creating unneded buffers.
	* TcpServerChannel.cs, TcpClientTransportSink.cs: Use new buffer
	parameter in ReceiveMessageStatus.


svn path=/trunk/mcs/; revision=39323
2005-01-21 18:12:51 +00:00
Lluis Sanchez c7a8eadb97 2005-01-14 Lluis Sanchez Gual <[email protected]>
* TcpConnectionPool.cs: Don't limit client connections.
	This fixes bug #70700. Create connections from outside the pool lock.
	* TcpMessageIO.cs: Throw real exceptions when errors occur.
	* TcpServerChannel.cs: Use the new RemotingThreadPool to manage threads.
	This also fixes bug #70700.


svn path=/trunk/mcs/; revision=38948
2005-01-14 17:29:18 +00:00
Lluis Sanchez ab1475c0c5 2004-12-17 Lluis Sanchez Gual <[email protected]>
* TcpMessageIO.cs: Removed some more WriteByte calls.
	* TcpClientTransportSink.cs: Flush the net stream after writing
	a message.


svn path=/trunk/mcs/; revision=37875
2004-12-17 12:02:41 +00:00
Lluis Sanchez 08b509b1a7 2004-12-10 Lluis Sanchez Gual <[email protected]>
* TcpChannel.cs: Don't use regular expressions to parse the url, it's
	too slow.
	* TcpMessageIO.cs: Read byte chunks using the new StreamRead method,
	which won't block if the connection is closed.
	* TcpServerChannel.cs: Flush the stream after writing the response.
	Wrap the close call in a try/catch (some bytes can be left in the
	buffered stream if a connection is suddently closed, and it will fail
	when trying to flush them).


svn path=/trunk/mcs/; revision=37564
2004-12-10 11:37:16 +00:00
Lluis Sanchez 0456111a22 2004-12-09 Lluis Sanchez Gual <[email protected]>
* TcpConnectionPool.cs: Access the socket stream through a
	BufferedStream.
	* TcpMessageIO.cs: Avoid ReadByte().
	* TcpServerChannel.cs: Access the socket stream through a
	BufferedStream. Abort the connection if an unknown message is received.
	All this fixes performance bug #70337.


svn path=/trunk/mcs/; revision=37520
2004-12-09 20:47:05 +00:00
Duncan Mak bab786ade5 Add licensing info
svn path=/trunk/mcs/; revision=30348
2004-06-24 21:38:17 +00:00
Lluis Sanchez 29397612b2 * TcpMessageIO.cs: Changed header format to match MS.NET. Based on the patch
sent by Jose Lu�s Mart�n.
	* TcpClientTransportSink.cs: Added Content-Type header. Improved support
	  for OneWay messages.

svn path=/trunk/mcs/; revision=13060
2003-04-03 15:32:16 +00:00
Alvaro del Castillo fe14fa4e67 2003-02-05 Alvaro del Castillo <[email protected]>
* System.Runtime.Remoting.Channels.Tcp/TcpClientTransportSink.cs:
        * System.Runtime.Remoting.Channels.Tcp/TcpMessageIO.cs:
        * System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs:
        Change MessageType to MessageStatus so the code is
        more clear

svn path=/trunk/mcs/; revision=11254
2003-02-05 22:00:42 +00:00
Lluis Sanchez 913fe3e70b * TcpServerChannel.cs: Changed default formatter sink to BinaryFormatterSink
* TcpMessageIO.cs: warning corrected.
* TcpConnectionPool.cs: changed default value of MaxOpenConnections.
* TcpClientTransportSink.cs: implemented support for one way calls.
* TcpClientChannel.cs: Changed default formatter sink to BinaryFormatterSink.
* TcpChannel.cs: corrected Parse method. Now can parse channel uris.
* BinaryServerFormatterSink.cs: Implemented.
* BinaryClientFormatterSink.cs: Implemented.

svn path=/trunk/mcs/; revision=10925
2003-01-26 18:11:18 +00:00
Lluis Sanchez 0792fc1a6d no message
svn path=/trunk/mcs/; revision=9963
2002-12-29 12:36:37 +00:00